Associate Backend with API

put

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

Associates an API with a backend.

Request

Supported Media Types
Path Parameters
Header Parameters
  • 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 `*`.

Response

Supported Media Types

204 Response

The association was updated. No content was returned in this response.

404 Response

The API or backend doesn't exist.
Body ()
Root Schema : error
Type: object
Show Source
Nested Schema : errorDetails
Type: object
Show Source

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
Show Source
Nested Schema : errorDetails
Type: object
Show Source

Examples

The following example shows how to associate an API with a backend using cURL. For more information about cURL, see Use cURL.

curl -i -X PUT -H "Content-Type: application/json; charset=utf-8" -H "Authorization: Bearer $TOKEN" "$BASE_URL/mobile/tools/1.0/mobilebackends/2ec3d6d7-4cbe-4785-8303-6b4221602c8b/apis/3f89c1e2-a6bc-4afc-a575-801475825b3f"

Example of Response Header

The following shows an example of the response headers:

204 NO CONTENT
Content-Length: 0
Date: Thu, 05 Oct 2017 01:54:49 GMT
Etag: "2,2"