PUT
/
organisations
/
{organisationId}
/
data-mappings
/
{mappingId}
/
entries
/
{entryId}
curl --request PUT \
  --url https://platform.versori.com/api/switchboard/v1alpha1/organisations/{organisationId}/data-mappings/{mappingId}/entries/{entryId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sourceValue": "<string>",
  "targetValue": "<string>"
}'
{
  "id": "<string>",
  "mapping": {
    "id": "<string>",
    "orgId": "<string>",
    "sourceApp": {
      "id": "<string>",
      "orgId": "<string>",
      "name": "<string>",
      "public": true,
      "server": {
        "name": "<string>",
        "url": "<string>"
      },
      "schemaMetadata": {
        "type": "<string>",
        "version": "<string>",
        "url": "<string>"
      },
      "supportedAuthConfigs": [
        {
          "type": "<string>",
          "isValid": true,
          "data": {
            "discoveryUrl": "<string>",
            "clientId": "<string>",
            "clientSecret": "<string>",
            "scopes": {}
          }
        }
      ],
      "imageUrl": "<string>",
      "schema": {
        "id": "<string>",
        "type": "<string>",
        "version": "<string>",
        "sourceUrl": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "deletedAt": "2023-11-07T05:31:56Z"
      },
      "schemaId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "deletedAt": "2023-11-07T05:31:56Z"
    },
    "sourceSchemaId": "<string>",
    "targetApp": {
      "id": "<string>",
      "orgId": "<string>",
      "name": "<string>",
      "public": true,
      "server": {
        "name": "<string>",
        "url": "<string>"
      },
      "schemaMetadata": {
        "type": "<string>",
        "version": "<string>",
        "url": "<string>"
      },
      "supportedAuthConfigs": [
        {
          "type": "<string>",
          "isValid": true,
          "data": {
            "discoveryUrl": "<string>",
            "clientId": "<string>",
            "clientSecret": "<string>",
            "scopes": {}
          }
        }
      ],
      "imageUrl": "<string>",
      "schema": {
        "id": "<string>",
        "type": "<string>",
        "version": "<string>",
        "sourceUrl": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "deletedAt": "2023-11-07T05:31:56Z"
      },
      "schemaId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "deletedAt": "2023-11-07T05:31:56Z"
    },
    "targetSchemaId": "<string>",
    "definition": [
      {
        "sourceField": "<string>",
        "targetField": "<string>"
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z"
  },
  "sourceValue": "<string>",
  "targetValue": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

organisationId
string
required
mappingId
string
required
entryId
string
required

Body

application/json
Payload to update an existing DataMappingEntry.

DataMappingEntryUpdate is the request body to update a credential. The ID and organisation ID and Mapping ID fields are taken from the URL path.

sourceValue
required

The source value of the mapping entry.

targetValue
required

The target value of the mapping entry.

Response

200
application/json
A single DataMappingEntry result
id
string
required
sourceValue
required
targetValue
required
mapping
object
createdAt
string
updatedAt
string
deletedAt
string