Update API

put

/mobile/tools/1.0/apis/{id}

Overwrites the API metadata.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
The identifier of the API.
Header Parameters
If-Match
Type: string
The request completes successfully only if the ETag of the corresponding asset matches the value of this HTTP request header. To force overwrite, pass the value `*`.
Body Parameter
The API representation for PUT requests.
Root Schema : apiUpdate
Type: object
The API representation for PUT requests.
Nested Schema : assetUpdate
Type: object
The asset representation for PUT requests.
Nested Schema : apiUpdate-allOf[1]
Nested Schema : stringArray
Type: array
Minimum Number of Items: 0
An array of string values.
Nested Schema : icon
Type: object
Information about the icon that's associated with the API or connector.
Nested Schema : apiSecurity
Type: object
The API security for POST and PUT requests.
Nested Schema : securityAccess
Type: object
Access details.
Nested Schema : endpointSecurityArray
Type: array
Minimum Number of Items: 0
An array of endpoint security elements.
Nested Schema : endpointSecurity
Type: object
The API security for POST and PUT requests.

Response

Supported Media Types
  • application/json
200 Response
The API metadata was updated, and metadata for the new API was returned.
Headers
ETag
Type: string
The ETag corresponds to the state of the API (that is, the value increments by one on each change operation). You can use this ETag with the `If-Match` HTTP header on a request.
Body
Information about the API (short form) and the RAML-validation result. This information doesn't include the RAML descriptor.
Root Schema : apiCreatedWithRamlValidation
Type: object
Information about the API (short form) and the RAML-validation result. This information doesn't include the RAML descriptor.
Nested Schema : apiShort
Type: object
The short API definition representation.
Nested Schema : apiCreatedWithRamlValidation-allOf[1]
Nested Schema : assetGet
Type: object
The asset representation for GET requests.
Nested Schema : apiShort-allOf[1]
Nested Schema : assetUpdate
Type: object
The asset representation for PUT requests.
Nested Schema : assetIdEtag
Type: object
The asset ID and entity tag (ETag) values.
Nested Schema : trash
Type: object
Indicator of whether the asset is in the trash.
Nested Schema : assetGet-allOf[3]
Nested Schema : entityLinksArray
Type: array
Minimum Number of Items: 0
An array of links for an entity's metadata.
Nested Schema : items
Type: object
Link to the entity's metadata.
Nested Schema : icon
Type: object
Information about the icon that's associated with the API or connector.
Nested Schema : ramlValidationReport
Type: object
The result of the RAML validation.
Nested Schema : apiSecurity
Type: object
The API security for POST and PUT requests.
Nested Schema : validationResults
Type: array
Minimum Number of Items: 0
Nested Schema : securityAccess
Type: object
Access details.
Nested Schema : endpointSecurityArray
Type: array
Minimum Number of Items: 0
An array of endpoint security elements.
Nested Schema : stringArray
Type: array
Minimum Number of Items: 0
An array of string values.
Nested Schema : endpointSecurity
Type: object
The API security for POST and PUT requests.
400 Response
Missing API specification.
Body
Root Schema : error
Type: object
Nested Schema : errorDetails
Type: object
409 Response
The update modified either the name or the version, and an API with the same name and version as the updated API already exists.
Body
Root Schema : error
Type: object
Nested Schema : errorDetails
Type: object
412 Response
The operation failed based on the `If-Match` condition. Typically, this is the result of concurrent modification detection. It also can be the result of improper values specified in the request headers.
Body
Root Schema : error
Type: object
Nested Schema : errorDetails
Type: object