Upload Implementation Archive
post
/mobile/tools/1.0/apis/{id}/implementations
Creates or updates a custom API implementation using the information that's provided in the uploaded implementation archive. When an implementation is created, it's bound to the API.
Request
Supported Media Types
- multipart/form-data
Path Parameters
- id
-
Type:
string
Required:true
The ID for the custom API implementation.
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 `*`.
Form Parameters
- file
-
Type:
file
Required:true
The ZIP file that contains all the artifacts for the custom API implementation.
Response
Supported Media Types
- application/json
201 Response
The implementation was uploaded.
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
Root Schema : Implementation Artifact Details
Type:
object
Title:
Implementation Artifact Details
The implementation artifact details returned after uploading the file.
- artifactId
-
Type:
string
Required:true
A service-generated unique identifier for the uploaded ZIP file. - implementationId
-
Type:
string
Required:true
A service-generated unique identifier for the custom API implementation. - unresolvedDependencies
-
Type:
array
unresolvedDependencyArrayAdditional Properties Allowed:Minimum Number of Items:0
Unique Items Required:true
An array of unresolved dependencies for a custom API implementation.
Nested Schema : unresolvedDependencyArray
Type:
array
Minimum Number of Items:
0
Unique Items Required:
true
An array of unresolved dependencies for a custom API implementation.
-
Type:
object
unresolvedDependencyAdditional Properties Allowed:Unresolved dependency for the custom API implementation.
Nested Schema : unresolvedDependency
Type:
object
Unresolved dependency for the custom API implementation.
- name
-
Type:
string
The name of the custom API or connector. - version
-
Type:
string
The version of the custom API or connector.
Example application/json
{
"implementationId":"17a5b053-4d99-4dcf-8cc7-4b7feb152ce4",
"unresolvedDependencies":[
{
"name":"custom/employees",
"version":"3.5.1"
},
{
"name":"connector/hcm",
"version":"1.0"
}
],
"artifactId":"7da44b1a-b3e0-4d2f-b696-ac7444fbdd68"
}
400 Response
There's an issue with the ZIP file. For example, the service can't unzip the file or it can't find the main JavaScript file.
Body
Root Schema : error
Type:
object
- detail
-
Type:
string
Required:true
Message that provides the error details. - o:ecid
-
Type:
string
Required:true
Execution 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:
string
Required:true
The service's error code. - o:errorDetails
-
Type:
object
errorDetailsAdditional Properties Allowed: - o:errorPath
-
Type:
string
Required:true
The relative point in the API path where the error occurred. - status
-
Type:
integer
(int64
)Required:true
HTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details. - title
-
Type:
string
Required:true
Summary of the problem. - type
-
Type:
string
Required:true
The URI to the link that provides details about the HTTP status code.
Nested Schema : errorDetails
Type:
object
- detail
-
Type:
string
Required:true
- o:errorDetails
-
Type:
object
errorDetailsAdditional Properties Allowed: - title
-
Type:
string
Required:true
Summary of the problem. - type
-
Type:
string
Required:true
The URI to the link that provides details about the HTTP status code.
404 Response
A custom API doesn't exist for the ID in the id
path parameter.
Body
Root Schema : error
Type:
object
- detail
-
Type:
string
Required:true
Message that provides the error details. - o:ecid
-
Type:
string
Required:true
Execution 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:
string
Required:true
The service's error code. - o:errorDetails
-
Type:
object
errorDetailsAdditional Properties Allowed: - o:errorPath
-
Type:
string
Required:true
The relative point in the API path where the error occurred. - status
-
Type:
integer
(int64
)Required:true
HTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details. - title
-
Type:
string
Required:true
Summary of the problem. - type
-
Type:
string
Required:true
The URI to the link that provides details about the HTTP status code.
Nested Schema : errorDetails
Type:
object
- detail
-
Type:
string
Required:true
- o:errorDetails
-
Type:
object
errorDetailsAdditional Properties Allowed: - title
-
Type:
string
Required:true
Summary of the problem. - type
-
Type:
string
Required:true
The 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. This also can be the result of improper values specified in the request headers.
Body
Root Schema : error
Type:
object
- detail
-
Type:
string
Required:true
Message that provides the error details. - o:ecid
-
Type:
string
Required:true
Execution 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:
string
Required:true
The service's error code. - o:errorDetails
-
Type:
object
errorDetailsAdditional Properties Allowed: - o:errorPath
-
Type:
string
Required:true
The relative point in the API path where the error occurred. - status
-
Type:
integer
(int64
)Required:true
HTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details. - title
-
Type:
string
Required:true
Summary of the problem. - type
-
Type:
string
Required:true
The URI to the link that provides details about the HTTP status code.
Nested Schema : errorDetails
Type:
object
- detail
-
Type:
string
Required:true
- o:errorDetails
-
Type:
object
errorDetailsAdditional Properties Allowed: - title
-
Type:
string
Required:true
Summary of the problem. - type
-
Type:
string
Required:true
The URI to the link that provides details about the HTTP status code.