Add

Add a new CoExtendedType.

Request Format

Method

POST

URL

/co_extended_types.<format>

Request Body

CoExtendedType Request

Response Format

HTTP Status

Response Body

Description

201 Added

NewObjectResponse with ObjectType of CoExtendedType

CoExtendedType added

400 Bad Request

 

CoExtendedType Request not provided in POST body

400 Invalid Fields

ErrorResponse with details in InvalidFields element

An error in one or more provided fields

401 Unauthorized

 

Authentication required

403 CO Does Not Exist

 

The specified CO does not exist

403 Name In Use

 

An extended type for the specified attribute already exists with the specified name in the specified CO

500 Default Copy Error

 

Set up of default attribute types failed.

500 Other Error

 

Unknown error


Delete

Remove a CoExtendedType.

Request Format

Method

DELETE

URL

/co_extended_types/<id>.<format>

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 Deleted

 

CoExtendedType deleted

400 Invalid Fields

 

id not provided

401 Unauthorized

 

Authentication required

403 Type In Use

 

The type is in use and cannot be deleted (unless all references to the type are changed)

404 Identifier Unknown

 

id not found

500 Database Error

 

The underlying RDBMS was unable to perform a supporting operation.

500 Other Error

 

Unknown error


Edit

Edit an existing CoExtendedType.

Request Format

Method

PUT

URL

/co_extended_types/<id>.<format>

Request Body

CoExtendedType Request

Response Format

HTTP Status

Response Body

Description

200 OK

 

CoExtendedType updated

400 Bad Request

 

CoExtendedType Request not provided in POST body

400 Invalid Fields

ErrorResponse with details in InvalidFields element

An error in one or more provided fields

401 Unauthorized

 

Authentication required

403 CO Does Not Exist

 

The specified CO does not exist

403 Name In Use

 

An extended type already exists with the specified name in the specified CO

404 Identifier Unknown

 

id not found

500 Other Error

 

Unknown error


View (all)

Retrieve all existing CoExtendedTypes.

Request Format

Method

GET

URL

/co_extended_types.<format>

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 OK

CoExtendedType Response

CoExtendedType returned

401 Unauthorized

 

Authentication required

500 Other Error

 

Unknown error


View (per CO)

Retrieve CoExtendedTypes attached to a CO.

Request Format

Method

GET

URL

/co_extended_types.<format>?coid=<id>

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 OK

CoExtendedType Response

CoExtendedType returned

401 Unauthorized

 

Authentication required

404 CO Unknown

 

id not found

500 Other Error

 

Unknown error


View (one)

Retrieve an existing CoExtendedType.

Request Format

Method

GET

URL

/co_extended_types/<id>.<format>

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 OK

CoExtendedType Response

CoExtendedType returned

401 Unauthorized

 

Authentication required

404 CoExtendedAttribute Unknown

 

id not found

500 Other Error

 

Unknown error


Notes

  • Response format requested is ignored where response is only via HTTP status, but must still be provided.
  • (warning) This API manages the definition of Extended Types. The values for instantiated Extended Types are managed via the appropriate attribute API (eg Identifier API).

See Also

  • No labels