Vai al contenuto principale
PUT
/
api
/
v1
/
organizations
/
{organizationid}
/
subscriptions
/
{licenseid}
Update organization subscription
curl --request PUT \
  --url https://app.aegister.com/api/v1/organizations/{organizationid}/subscriptions/{licenseid} \
  --header 'Content-Type: application/json' \
  --header 'X-Aegister-Token: <api-key>' \
  --data '
{
  "expires_at": "2023-11-07T05:31:56Z"
}
'
{
  "error": 0,
  "messages": "<array>",
  "data": {
    "organization": 123,
    "license": 123
  }
}

Autorizzazioni

X-Aegister-Token
string
header
obbligatorio

Parametri del percorso

licenseid
integer
obbligatorio

License ID of the subscription to edit.

organizationid
integer
obbligatorio

Organization ID.

Corpo

expires_at
string<date-time>
obbligatorio

New subscription expiration date (ISO format). Use '0000-00-00' for no expiration.

Risposta

error
integer

Any value different from 0 indicates an error.
More details can be found in messages.

Intervallo richiesto: 0 <= x <= 0
Esempio:

0

messages
array

If error is 1, contains zero or more details on the error.

Esempio:
[]
data
object