Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...

Find

Search for existing CO Person records.

When too many records are found, a message may be returned rather than specific records.

Note
titleProvisional API

This API call is currently intended only to support the People Picker user interface element. It does not currently support RESTful response codes. It may change across minor releases. It may be eventually be merged with the Match API.

The Find API is available as of Registry v3.3.0.

Request Format

Method

GET

URL

/co_people/find/co:<id>/mode:<mode>?term=<string>

Request Body


where

  • id: CO ID
  • mode: Search context, currently the only supported value is S (Sponsor Mode)
  • string: Search string, which may be a partial or full name token, or a complete Email Address or Identifier

Response Format

A JSON array of objects, where each object contains a label (human readable string) and value (CO Person ID).

...

Match

Attempt to match existing CO Person records.

...

Note
titleProvisional API

This API call is likely to evolve to accept search criteria more flexibly. It may change across minor releases. It may eventually be removed in favor of the Find API.

Request Format

Method

GET

URL

/co_people.<format>?coid=<id>[&given=<string>][&family=<string>][&family=<string>][&mail=<string>]

Request Body


(info) mail was added in Registry v3.3.0.

Response Format

HTTP Status

Response Body

Description

200 OK

CoPerson Response

CoPerson returned (zero or more matches may be returned)

401 Unauthorized


Authentication required

404 CO Unknown


id not found
(warning)  Not currently implemented -- unknown CO will return an empty set

500 Other Error


Unknown error

...

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

...

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

...

Retrieve all existing CO People attached to the specified identifier. Note the specified identifier must be attached to a CO Person, not an Org Identity.

Request Format

Method

GET

URL

/co_people.<format>?coid=<id>&search.identifier=<identifier>

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

...

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

...