Update API
put
                    /mobile/tools/1.0/apis/{id}
Overwrites the API metadata.
                Request
Supported Media Types
                                - application/json
Path Parameters
                                - id
- 
                                            
Type:stringRequired:trueThe identifier of the API.
Header Parameters
                                - If-Match
- 
                                            
Type:stringThe 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: 
objectThe API representation for PUT requests.
- 
        
        Type:objectassetUpdateAdditional Properties Allowed:The asset representation for PUT requests.
- 
        
        Type:objectapiUpdate-allOf[1]Additional Properties Allowed:
Nested Schema : assetUpdate
Type: 
objectThe asset representation for PUT requests.
- actionComment
- 
            
            
Type:string
- desc
- 
            
            
Type:stringMaximum Length:100
- max
- 
            
            
Type:booleanDefault Value:false
- name
- 
            
            
Type:stringRequired:trueMaximum Length:100Pattern:^[a-zA-Z][a-zA-Z0-9_]*$
- namespace
- 
            
            
Type:stringApplicable to APIs and implementations only. This value is null for all other asset types.
- title
- 
            
            
Type:stringMaximum Length:255
- version
- 
            
            
Type:stringMaximum Length:100Pattern:^[a-zA-Z0-9][\w.]*$Asset version.
Nested Schema : apiUpdate-allOf[1]
- apiDefn
- 
            
            Type:arraystringArrayAdditional Properties Allowed:Minimum Number of Items:0An array of string values.
- basePath
- 
            
            
Type:stringThe API base path in the format `/mobile/custom/{apiName}`. This is required to define the API name.
- businessObjectsDefn
- 
            
            
Type:string
- hasBusinessObjects
- 
            
            
Type:booleanDefault Value:falseIndicates whether the API is associated with API Express resources (business objects).
- icon
- 
            
            Type:objecticonAdditional Properties Allowed:Information about the icon that's associated with the API or connector.
- security
- 
            
            Type:objectapiSecurityAdditional Properties Allowed:The API security for POST and PUT requests.
Nested Schema : stringArray
Nested Schema : icon
Type: 
objectInformation about the icon that's associated with the API or connector.
- id
- 
            
            
Type:stringRequired:true
- url
- 
            
            
Type:stringRequired:true
Nested Schema : apiSecurity
Type: 
objectThe API security for POST and PUT requests.
- access
- 
            
            Type:objectsecurityAccessAdditional Properties Allowed:Access details.
- endpoints
- 
            
            Type:arrayendpointSecurityArrayAdditional Properties Allowed:Minimum Number of Items:0An array of endpoint security elements.
- loginType
- 
            
            
Allowed Values:[ "ENTERPRISE", "IDENTITYPROVIDER" ]If the `required` attribute has a value of `true`, then the default is `ENTERPRISE`.
- required
- 
            
            
Type:booleanRequired:trueWhen `true`, either security access or a social identity provider configuration is required.
Nested Schema : securityAccess
Type: 
objectAccess details.
- all
- 
            
            
Type:boolean
- roles
- 
            
            Type:arraystringArrayAdditional Properties Allowed:Minimum Number of Items:0An array of string values.
Nested Schema : endpointSecurityArray
Type: 
arrayMinimum Number of Items: 
0An array of endpoint security elements.
- 
        
        Type:objectendpointSecurityAdditional Properties Allowed:The API security for POST and PUT requests.
Nested Schema : endpointSecurity
Type: 
objectThe API security for POST and PUT requests.
- access
- 
            
            Type:objectsecurityAccessAdditional Properties Allowed:Access details.
- method
- 
            
            
Type:stringRequired:true
- resource
- 
            
            
Type:stringRequired:true
Response
Supported Media Types
                                - application/json
200 Response 
                                
                                    The API metadata was updated, and metadata for the new API was returned.
                                
                                
                                Headers
                                    - ETag
- 
                                                
Type:stringThe 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: 
objectInformation about the API (short form) and the RAML-validation result. This information doesn't include the RAML descriptor.
- 
        
        Type:objectapiShortAdditional Properties Allowed:The short API definition representation.
- 
        
        Type:objectapiCreatedWithRamlValidation-allOf[1]Additional Properties Allowed:
Nested Schema : apiShort
Type: 
objectThe short API definition representation.
- 
        
        Type:objectassetGetAdditional Properties Allowed:The asset representation for GET requests.
- 
        
        Type:objectapiShort-allOf[1]Additional Properties Allowed:
Nested Schema : apiCreatedWithRamlValidation-allOf[1]
- ramlValidationReport
- 
            
            Type:objectramlValidationReportAdditional Properties Allowed:The result of the RAML validation.
- security
- 
            
            Type:objectapiSecurityAdditional Properties Allowed:The API security for POST and PUT requests.
Nested Schema : assetGet
Type: 
objectThe asset representation for GET requests.
- 
        
        Type:objectassetUpdateAdditional Properties Allowed:The asset representation for PUT requests.
- 
        
        Type:objectassetIdEtagAdditional Properties Allowed:The asset ID and entity tag (ETag) values.
- 
        
        Type:objecttrashAdditional Properties Allowed:Indicator of whether the asset is in the trash.
- 
        
        Type:objectassetGet-allOf[3]Additional Properties Allowed:
Nested Schema : apiShort-allOf[1]
- basePath
- 
            
            
Type:stringThe API base path in the format `/mobile/custom/{apiName}`.
- hasBusinessObjects
- 
            
            
Type:booleanDefault Value:falseIndicates whether the API is associated with API Express resources (business objects).
- icon
- 
            
            Type:objecticonAdditional Properties Allowed:Information about the icon that's associated with the API or connector.
Nested Schema : assetUpdate
Type: 
objectThe asset representation for PUT requests.
- actionComment
- 
            
            
Type:string
- desc
- 
            
            
Type:stringMaximum Length:100
- max
- 
            
            
Type:booleanDefault Value:false
- name
- 
            
            
Type:stringRequired:trueMaximum Length:100Pattern:^[a-zA-Z][a-zA-Z0-9_]*$
- namespace
- 
            
            
Type:stringApplicable to APIs and implementations only. This value is null for all other asset types.
- title
- 
            
            
Type:stringMaximum Length:255
- version
- 
            
            
Type:stringMaximum Length:100Pattern:^[a-zA-Z0-9][\w.]*$Asset version.
Nested Schema : assetIdEtag
Type: 
objectThe asset ID and entity tag (ETag) values.
- etag
- 
            
            
Type:stringThe asset entity tag (ETag) value, which you can use to detect concurrent modification.
- id
- 
            
            
Type:stringRequired:true
Nested Schema : trash
Nested Schema : assetGet-allOf[3]
- createdOn
- 
            
            
Type:string
- deletedBy
- 
            
            
Type:string
- deletedOn
- 
            
            
Type:string
- links
- 
            
            Type:arrayentityLinksArrayAdditional Properties Allowed:Minimum Number of Items:0An array of links for an entity's metadata.
- modifiedBy
- 
            
            
Type:string
- modifiedOn
- 
            
            
Type:string
- published
- 
            
            
Type:booleanAn asset draft or published status representation.
Nested Schema : entityLinksArray
Nested Schema : items
Type: 
objectLink to the entity's metadata.
- href
- 
            
            
Type:stringRequired:trueLink value.
- rel
- 
            
            
Required:trueAllowed Values:[ "self", "canonical" ]Link type.
Nested Schema : icon
Type: 
objectInformation about the icon that's associated with the API or connector.
- id
- 
            
            
Type:stringRequired:true
- url
- 
            
            
Type:stringRequired:true
Nested Schema : ramlValidationReport
Type: 
objectThe result of the RAML validation.
- valid
- 
            
            
Type:booleanRequired:true
- validationResults
- 
            
            Type:arrayvalidationResultsAdditional Properties Allowed:Minimum Number of Items:0
Nested Schema : apiSecurity
Type: 
objectThe API security for POST and PUT requests.
- access
- 
            
            Type:objectsecurityAccessAdditional Properties Allowed:Access details.
- endpoints
- 
            
            Type:arrayendpointSecurityArrayAdditional Properties Allowed:Minimum Number of Items:0An array of endpoint security elements.
- loginType
- 
            
            
Allowed Values:[ "ENTERPRISE", "IDENTITYPROVIDER" ]If the `required` attribute has a value of `true`, then the default is `ENTERPRISE`.
- required
- 
            
            
Type:booleanRequired:trueWhen `true`, either security access or a social identity provider configuration is required.
Nested Schema : validationResults
Nested Schema : securityAccess
Type: 
objectAccess details.
- all
- 
            
            
Type:boolean
- roles
- 
            
            Type:arraystringArrayAdditional Properties Allowed:Minimum Number of Items:0An array of string values.
Nested Schema : endpointSecurityArray
Type: 
arrayMinimum Number of Items: 
0An array of endpoint security elements.
- 
        
        Type:objectendpointSecurityAdditional Properties Allowed:The API security for POST and PUT requests.
Nested Schema : stringArray
Nested Schema : endpointSecurity
Type: 
objectThe API security for POST and PUT requests.
- access
- 
            
            Type:objectsecurityAccessAdditional Properties Allowed:Access details.
- method
- 
            
            
Type:stringRequired:true
- resource
- 
            
            
Type:stringRequired:true
400 Response 
                                
                                    Missing API specification.
                                
                                
                                
                                
                                Body
                                    Root Schema : error
Type: 
object- detail
- 
            
            
Type:stringRequired:trueMessage that provides the error details.
- o:ecid
- 
            
            
Type:stringRequired:trueExecution context ID, which is a unique identifier to correlate events or requests that are associated with the same transaction across several components.
- o:errorCode
- 
            
            
Type:stringRequired:trueThe service's error code.
- o:errorDetails
- 
            
            Type:objecterrorDetailsAdditional Properties Allowed:
- o:errorPath
- 
            
            
Type:stringRequired:trueThe relative point in the API path where the error occurred.
- status
- 
            
            
Type:integer(int64)Required:trueHTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details.
- title
- 
            
            
Type:stringRequired:trueSummary of the problem.
- type
- 
            
            
Type:stringRequired:trueThe URI to the link that provides details about the HTTP status code.
Nested Schema : errorDetails
Type: 
object- detail
- 
            
            
Type:stringRequired:true
- o:errorDetails
- 
            
            Type:objecterrorDetailsAdditional Properties Allowed:
- title
- 
            
            
Type:stringRequired:trueSummary of the problem.
- type
- 
            
            
Type:stringRequired:trueThe URI to the link that provides details about the HTTP status code.
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- detail
- 
            
            
Type:stringRequired:trueMessage that provides the error details.
- o:ecid
- 
            
            
Type:stringRequired:trueExecution context ID, which is a unique identifier to correlate events or requests that are associated with the same transaction across several components.
- o:errorCode
- 
            
            
Type:stringRequired:trueThe service's error code.
- o:errorDetails
- 
            
            Type:objecterrorDetailsAdditional Properties Allowed:
- o:errorPath
- 
            
            
Type:stringRequired:trueThe relative point in the API path where the error occurred.
- status
- 
            
            
Type:integer(int64)Required:trueHTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details.
- title
- 
            
            
Type:stringRequired:trueSummary of the problem.
- type
- 
            
            
Type:stringRequired:trueThe URI to the link that provides details about the HTTP status code.
Nested Schema : errorDetails
Type: 
object- detail
- 
            
            
Type:stringRequired:true
- o:errorDetails
- 
            
            Type:objecterrorDetailsAdditional Properties Allowed:
- title
- 
            
            
Type:stringRequired:trueSummary of the problem.
- type
- 
            
            
Type:stringRequired:trueThe URI to the link that provides details about the HTTP status code.
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- detail
- 
            
            
Type:stringRequired:trueMessage that provides the error details.
- o:ecid
- 
            
            
Type:stringRequired:trueExecution context ID, which is a unique identifier to correlate events or requests that are associated with the same transaction across several components.
- o:errorCode
- 
            
            
Type:stringRequired:trueThe service's error code.
- o:errorDetails
- 
            
            Type:objecterrorDetailsAdditional Properties Allowed:
- o:errorPath
- 
            
            
Type:stringRequired:trueThe relative point in the API path where the error occurred.
- status
- 
            
            
Type:integer(int64)Required:trueHTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details.
- title
- 
            
            
Type:stringRequired:trueSummary of the problem.
- type
- 
            
            
Type:stringRequired:trueThe URI to the link that provides details about the HTTP status code.
Nested Schema : errorDetails
Type: 
object- detail
- 
            
            
Type:stringRequired:true
- o:errorDetails
- 
            
            Type:objecterrorDetailsAdditional Properties Allowed:
- title
- 
            
            
Type:stringRequired:trueSummary of the problem.
- type
- 
            
            
Type:stringRequired:trueThe URI to the link that provides details about the HTTP status code.