メインコンテンツまでスキップ

id-of-asset

restish dci id-of-asset id

Updates an existing asset, such as G Suite/Workspace or Office 365 subscription, to add or remove licenses.

Request

Content-Type: application/json

Schema

{
"type": "object",
"properties": {
"quantity": {
"type": "integer",
"format": "int64"
}
}
}

Responses

200 (application/json)

OK - Asset updated.

{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"properties": {
"type": "object",
"description": "Additional properties associated with an asset, such as subscription and customer details.",
"properties": {
"customerDomain": {
"type": "string",
"description": "The primary domain of the customer associated with this asset."
},
"customerID": {
"type": "string",
"description": "The unique identifier of the customer in the reseller or partner portal."
},
"reseller": {
"type": "string",
"description": "The reseller domain through which this asset was provisioned."
},
"subscription": {
"type": "object",
"description": "Subscription details for a G Suite or Office 365 asset.",
"properties": {
"billingMethod": {
"type": "string",
"description": "The billing method, e.g. ONLINE or OFFLINE."
},
"creationTime": {
"type": "integer",
"description": "The time when the subscription was created, in milliseconds since the epoch.",
"format": "int64"
},
"id": {
"type": "string",
"description": "The unique identifier of the subscription."
},
"plan": {
"type": "object",
"description": "Plan details for a subscription, indicating whether it is a commitment or flexible plan.",
"properties": {
"commitmentInterval": {
"type": "object",
"description": "The start and end dates of an annual commitment term.",
"properties": {
"endTime": {
"type": "integer",
"description": "The end time of the commitment interval, in milliseconds since the epoch.",
"format": "int64"
},
"startTime": {
"type": "integer",
"description": "The start time of the commitment interval, in milliseconds since the epoch.",
"format": "int64"
}
}
},
"isCommitmentPlan": {
"type": "boolean",
"description": "Whether this subscription is on an annual commitment plan (true) or a flexible plan (false)."
},
"planName": {
"type": "string",
"description": "The name of the plan, e.g. ANNUAL_MONTHLY_PAY, ANNUAL_YEARLY_PAY, FLEXIBLE, or TRIAL."
}
}
},
"purchaseOrderID": {
"type": "string",
"description": "The purchase order ID associated with this subscription, if any."
},
"renewalSettings": {
"type": "object",
"description": "Settings that control subscription renewal behavior at the end of a commitment term.",
"properties": {
"renewalType": {
"type": "string",
"description": "The type of renewal, e.g. AUTO_RENEW_MONTHLY_PAY, AUTO_RENEW_YEARLY_PAY, RENEW_CURRENT_USERS_MONTHLY_PAY, RENEW_CURRENT_USERS_YEARLY_PAY, SWITCH_TO_PAY_AS_YOU_GO, or CANCEL."
}
}
},
"resourceUIURL": {
"type": "string",
"description": "A URL to the subscription management page in the admin console."
},
"seats": {
"type": "object",
"description": "Licensing seat counts for a subscription.",
"properties": {
"licensedNumberOfSeats": {
"type": "integer",
"description": "The number of seats that are currently in use or assigned to users.",
"format": "int64"
},
"maximumNumberOfSeats": {
"type": "integer",
"description": "The maximum number of seats that can be used. Applies to flexible (non-commitment) plans.",
"format": "int64"
},
"numberOfSeats": {
"type": "integer",
"description": "The number of committed seats. Applies to annual commitment plans.",
"format": "int64"
}
}
},
"skuID": {
"type": "string",
"description": "The unique SKU identifier for the subscribed product."
},
"skuName": {
"type": "string",
"description": "A human-readable name for the subscribed product SKU."
},
"status": {
"type": "string",
"description": "The current status of the subscription, e.g. ACTIVE, SUSPENDED, or PENDING."
}
}
}
}
},
"type": {
"type": "string"
}
}
}

400 (application/json)

Bad Request - The server cannot process the request, often due to a malformed request.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

401 (application/json)

Unauthorized - Invalid API key.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

403 (application/json)

Forbidden - The client is not authorized to perform the request.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

404 (application/json)

Not Found - The requested resource does not exist.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

Aliases: id-of-asset, idofasset