Create API Mapping
  • 01 May 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Create API Mapping

  • Dark
    Light
  • PDF

Article Summary

Post
/internal-assets/4.0/api-mapping/{envId}/{assetTemplateId}/{attributeKey}

Create a new API Mapping for the specified Asset Template ID and Attribute Key.

Path parameters
assetTemplateId
stringRequired

The Asset Template ID can be found under the Details tab of the relevant Asset Type.

envId
string (uuid) Required

The Environment ID can be found under the Details Tab in the Environment Settings.

attributeKey
stringRequired

To locate the Attribute Key, select the relevant Asset Type and click on Asset Attributes.

Body parameters

API Mapping to create.

Ensure that you input either an applicationMatcherID or an applicationName and applicationMatcherName

by_matcher_id
{
  "applicationMatcherId": "1e70c17a-78c3-4fd9-83f5-dbea8641147a",
  "path": "",
  "source": "BODY"
}
by_matcher_name
{
  "applicationMatcherName": "matcher_name",
  "applicationName": "my_app",
  "path": "",
  "source": "BODY"
}
object
applicationMatcherId
string (uuid)
applicationMatcherName
string
applicationName
string
path
string
source
string
Valid values[ "\"BODY\"", "\"HEADER\"", "\"PATH\"", "\"QUERY\"" ]
Responses
201

Successful operation

Headers
x-request-id
string
The ID of the request
Expand All
object

Response object

data
Array of object (AttributeMapper)
object
applicationMatcherId
string (uuid)
applicationMatcherName
string
applicationName
string
assetTemplateId
string
attributeKey
string
envId
string (uuid)
id
string (uuid)
path
string
source
string
Valid values[ "\"BODY\"", "\"HEADER\"", "\"PATH\"", "\"QUERY\"" ]
400

Table name is not unique

Headers
x-request-id
string
The ID of the request
Expand All
object

Response object

errors
Array of object (Error)
object

Error object

args
object
code
string
id
string
message
string
name
string
status
integer
401

Unauthorized

Headers
x-request-id
string
The ID of the request
Expand All
object

Response object

errors
Array of object (Error)
object

Error object

args
object
code
string
id
string
message
string
name
string
status
integer
404

Object not found

Headers
x-request-id
string
The ID of the request
Expand All
object

Response object

errors
Array of object (Error)
object

Error object

args
object
code
string
id
string
message
string
name
string
status
integer
500

Internal Server Error

Headers
x-request-id
string
The ID of the request
Expand All
object

Response object

errors
Array of object (Error)
object

Error object

args
object
code
string
id
string
message
string
name
string
status
integer

Was this article helpful?