Skip to main content
Skip table of contents

External identifiers reference [VC 21.3.1 GEN]

Managing external id namespaces

Manage external identifier namespaces.

Retrieve all known namespaces

GET /external-id

Retrieves all known external id namespaces.

Produces:
Role:

_administrator

Example

NONE
GET /external-id
HTML/XML
<ExternalIdentifierNamespaceListDocument xmlns="http://xml.vidispine.com/schema/vidispine">
  <namespace>
    <name>uuid</name>
    <pattern>[A-Fa-f0-9]{8}\-[A-Fa-f0-9]{4}\-[A-Fa-f0-9]{4}\-[A-Fa-f0-9]{4}\-[A-Fa-f0-9]{12}</pattern>
  </namespace>
</ExternalIdentifierNamespaceListDocument>

Retrieve a specific namespace

GET /external-id/(namespace-id)

Retrieves the namespace with the specified name.

Produces:
Role:

_administrator

Example

NONE
GET /external-id/uuid
HTML/XML
<ExternalIdentifierNamespaceDocument xmlns="http://xml.vidispine.com/schema/vidispine">
  <name>uuid</name>
  <pattern>[A-Fa-f0-9]{8}\-[A-Fa-f0-9]{4}\-[A-Fa-f0-9]{4}\-[A-Fa-f0-9]{4}\-[A-Fa-f0-9]{12}</pattern>
</ExternalIdentifierNamespaceDocument>

Update or create a namespace

PUT /external-id/(namespace-id)

Creates or modifies a namespace with the specified name.

Accepts:
Role:

_administrator

Example

NONE
PUT /external-id/uuid
Content-Type: application/xml

<ExternalIdentifierNamespaceDocument xmlns="http://xml.vidispine.com/schema/vidispine">
    <pattern>[A-Fa-f0-9]{8}\-[A-Fa-f0-9]{4}\-[A-Fa-f0-9]{4}\-[A-Fa-f0-9]{4}\-[A-Fa-f0-9]{12}</pattern>
</ExternalIdentifierNamespaceDocument>
NONE
200 OK

Delete a namespace and all external ids in that namespace

DELETE /external-id/(namespace-id)

Deletes the specified namespace together with all external ids that exist in that namespace.

Role:

_administrator

Example

NONE
DELETE /external-id/uuid
NONE
200 OK

Managing external ids

Manage external ids.

The current supported resources can be seen in the table below. These are referred to as {external-id-resource} in the definitions below.

Type

Path

Item

/item/{item-id}/external-id

Collection

/collection/{collection-id}/external-id

Library

/library/{library-id}/external-id

Job

/job/{job-id}/external-id

Notification

.../notification/{notification-id}/external-id

Storage

/storage/{storage-id}/external-id

Metadata-field

/metadata-field/{field-name}/external-id

Field-group

/metadata-field/field-group/{field-group-name}/external-id

Quota rule

/quota/{rule-id}/external-id

Retrieve all external ids for an entity

GET {external-id-resource}

Retrieves all external ids that are assigned to a particular entity.

Produces:
Role:

_external_id_read

Example

NONE
GET /storage/VX-1/external-id
HTML/XML
<ExternalIdentifierListDocument xmlns="http://xml.vidispine.com/schema/vidispine">
  <id>
    <entityId>VX-1</entityId>
    <entityType>Storage</entityType>
    <namespace>uuid</namespace>
    <externalId>38eebf93-2ab7-463b-ba3a-b6217bb5bca9</externalId>
  </id>
</ExternalIdentifierListDocument>
NONE
GET /storage/38eebf93-2ab7-463b-ba3a-b6217bb5bca9/external-id
HTML/XML
<ExternalIdentifierListDocument xmlns="http://xml.vidispine.com/schema/vidispine">
  <id>
    <entityId>VX-1</entityId>
    <entityType>Storage</entityType>
    <namespace>uuid</namespace>
    <externalId>38eebf93-2ab7-463b-ba3a-b6217bb5bca9</externalId>
  </id>
</ExternalIdentifierListDocument>

Create a new external id

PUT {external-id-resource}/(external-id)

Creates a new external id for the specified entity.

Role:

_external_id_write

External ids can only contain a maximum amount of 100 characters, regardless of the max size that is specified in the namespace pattern.

Example

NONE
PUT /storage/VX-1/external-id/38eebf93-2ab7-463b-ba3a-b6217bb5bca9
NONE
200 OK
NONE
PUT /storage/VX-1/external-id/38eebf93-2ab7-463b-ba3a-b6217bb5bca9
NONE
400 An invalid parameter was entered
Context: external-id
Reason: That external id is already in use by VX-1.

Clear all external ids for an entity

DELETE {external-id-resource}

Clears all external identifiers that are registered with an entity.

Role:

_external_id_write

Example

NONE
DELETE /storage/VX-1/external-id
NONE
200 OK
NONE
GET /storage/38eebf93-2ab7-463b-ba3a-b6217bb5bca9/external-id
NONE
404 A resource could not be found
Type: external-id
ID: uuid_38eebf93-2ab7-463b-ba3a-b6217bb5bca9

Remove an external id

DELETE /external-id/id/(external-id)

Removes the external identifier from all entities.

Role:

_external_id_write

DELETE {external-id-resource}/(external-id)

Removes the external identifier from a specific entity.

Role:

_external_id_write

Example

NONE
DELETE /external-id/id/38eebf93-2ab7-463b-ba3a-b6217bb5bca9
NONE
200 OK
NONE
GET /storage/38eebf93-2ab7-463b-ba3a-b6217bb5bca9/external-id
NONE
404 A resource could not be found
Type: external-id
ID: uuid_38eebf93-2ab7-463b-ba3a-b6217bb5bca9
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.