You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Add

Add a new CO Person. A person must have an OrgIdentity before they can be added to a CO. Note that linking to an OrgIdentity and invitations are separate operations.

Request Format

Method

POST

URL

/co_people.<format>

Request Body

CoPerson Request

Response Format

HTTP Status

Response Body

Description

201 Added

NewObjectResponse with ObjectType of CoPerson

CoPerson created

400 Bad Request

 

CoPerson 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

500 Other Error

 

Unknown error


Delete

Remove a CO Person. This method will also delete related data, such as CoPersonRoles, EmailAddresses, and Identifiers. A person must be removed from any COs (CoPerson records must be deleted) before the OrgIdentity record can be removed.

Request Format

Method

DELETE

URL

/co_people/<id>.<format>

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 Deleted

 

CoPerson deleted

400 Invalid Fields

 

id not provided

401 Unauthorized

 

Authentication required

403 CoPersonRole Exists

 

The Person has one or more Person Role records and cannot be deleted

403 CouPerson Exists In Unowned COU

 

The Person has a role in one or more COUs that the authenticated user does not control

404 CoPerson Unknown

 

id not found

500 Other Error

 

Unknown error


Edit

Edit an existing CO Person.

Request Format

Method

PUT

URL

/co_people/<id>.<format>

Request Body

CoPerson Request

Response Format

HTTP Status

Response Body

Description

200 OK

 

CoPerson updated

400 Bad Request

 

CoPerson 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

404 CoPerson Unknown

 

id not found

500 Other Error

 

Unknown error


View (all)

Retrieve all existing CO People.

Request Format

Method

GET

URL

/co_people.<format>

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 OK

CoPerson Response

CoPerson returned

401 Unauthorized

 

Authentication required

500 Other Error

 

Unknown error


View (per CO)

Retrieve all existing CO People for the specified CO.

Request Format

Method

GET

URL

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

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 OK

CoPerson Response

CoPeople returned

401 Unauthorized

 

Authentication required

404 CO Unknown

 

id not found

500 Other Error

 

Unknown error


View (one)

Retrieve an existing CO Person.

Request Format

Method

GET

URL

/co_people/<id>.<format>

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 OK

CoPerson Response

CoPerson returned

401 Unauthorized

 

Authentication required

404 CoPerson 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.

See Also

  • No labels