put
https://api-v2.pandavideo.com.br/organizations/update_subaccount
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
PUT /organizations/update_subaccount
Updates a sub-account owned by the authenticated parent account (name, currency, limits, MFA, or status). Send organization_id plus the fields you want to change.
AuthorizationOnly parent accounts can call this endpoint (
put-subaccountpermission +has_sub_accounts). Theorganization_idmust be a sub-account whoseparent_organization_idequals your organization.
HTTP Method & Path
PUT /organizations/update_subaccount
Base URL: https://api-v2.pandavideo.com.br
Authentication Requirements
- Security Scheme:
PandaAuth(apiKey) - Header:
Authorization: <your_api_token>(no Bearer prefix)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization | header | string | Yes | Panda API token (without Bearer prefix) |
Request Body
Content-Type: application/json
organization_id is required. Include any combination of the optional fields (additionalProperties: false — unknown fields are rejected).
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
organization_id | string (uuid) | Yes | Sub-account to update | — |
name | string | No | New display name | 1–255 |
status | string | No | New status | Enum: active, blocked, deleted, inactive |
currency | string | No | Currency (validated but not persisted by this endpoint) | Enum: brl, usd |
image_id | string | null | No | Logo/image reference | minLength 1 |
require_mfa | boolean | No | Enforce MFA for the sub-account | — |
has_sub_accounts | boolean | No | Mark the org as a parent | — |
storage_plan | number | No | Storage limit (GB) | ≥ 1 |
traffic_plan | number | No | Monthly bandwidth limit (GB) | ≥ 1 |
traffic_drm_plan | number | No | DRM bandwidth limit (GB) | ≥ 1 |
Status remapping gotcha: sendingstatus: "inactive"(or omitting status while another status path runs) causes the backend to store the organization asblocked.activeclears the canceled/blocked/deleted timestamps;blockedsetslast_blocked_at;deletedstaysdeleted. Status changes also update the subscription record (e.g.inactive→ subscriptionunpaid).
You may send more than one field per request; each change emits its own audit event.currencyis accepted by validation but this endpoint does not persist it.
Example — rename
{ "organization_id": "efcb5915-df17-46b6-bfd8-e8998bc94917", "name": "New Name" }Example — change status
{ "organization_id": "efcb5915-df17-46b6-bfd8-e8998bc94917", "status": "active" }Example — update limits
{ "organization_id": "efcb5915-df17-46b6-bfd8-e8998bc94917", "storage_plan": 50, "traffic_plan": 100 }Response
Success Response (200)
{
"organization_id": "efcb5915-df17-46b6-bfd8-e8998bc94917",
"storage_plan": 50,
"traffic_plan": 100,
"traffic_drm_plan": 25,
"status": "active",
"name": "New Name",
"image_id": "img_123"
}Error Responses
- 400 Bad Request — validation error (invalid/unknown field).
- 401 Unauthorized — Invalid or missing API token.
- 403 Forbidden —
"Verify permissions for the action"or"Only parent accounts can update subaccount limits". - 404 Not Found —
"Subaccount not found or not owned by parent account". - 500 Internal Server Error — Server error.
Example Usage
cURL
curl -X PUT \
'https://api-v2.pandavideo.com.br/organizations/update_subaccount' \
-H 'Authorization: your_api_token_here' \
-H 'Content-Type: application/json' \
-d '{ "organization_id": "efcb5915-df17-46b6-bfd8-e8998bc94917", "name": "New Name" }'