Data Structures

Clone a data structure

Changed on

Copies the specification and strict mode to the source team or another team in the same organization. Requires organization view, source data structure view, and permission to add data structures to the resolved target team.

post/api/v3/data-structures/{id}/clone

Request

  • Base URL: https://fusion.adobe.io
  • URL: https://fusion.adobe.io/api/v3/data-structures/{id}/clone
  • Auth: HTTP bearer and API key in header x-organization-id and API key in header x-api-key and API key in header x-gw-region

Path parameters

idnumber required
Example:123

Data structure ID

Request body

namestring

Clone name. Defaults to the source name plus " (clone)".

teamIdinteger

Target team in the same organization. Defaults to the source team.

Example request

{
  "name": "Customer Profile (clone)",
  "teamId": 10
}

Response

Data structure cloned successfully.

idnumber required

Unique identifier of the data structure.

namestring required

Display name of the data structure.

strictboolean required

When true, all values stored against this structure must conform exactly to its spec.

teamIdnumber required

ID of the team that owns this data structure. The search endpoint always scopes results to this team; clients can also use it as an explicit filter.

Example response

{
  "id": 42,
  "name": "Customer record",
  "teamId": 88,
  "spec": [
    {
      "name": "name",
      "label": "Full Name",
      "required": true,
      "sequence": true,
      "codepage": "utf-8"
    }
  ]
}

Changes