Create an empty private card
POST
/role
const url = 'https://api.harperharbor.com/open/v1/role';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"roleName":"example","language":"example","cardType":"example","contentRatingIntent":"example","idempotencyKey":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.harperharbor.com/open/v1/role \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "roleName": "example", "language": "example", "cardType": "example", "contentRatingIntent": "example", "idempotencyKey": "example" }'Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
roleName
required
string
language
string
cardType
string
contentRatingIntent
string
idempotencyKey
string
Examplegenerated
{ "roleName": "example", "language": "example", "cardType": "example", "contentRatingIntent": "example", "idempotencyKey": "example"}Responses
Section titled “Responses”Created.
Media typeapplication/json
object
roleId
string
roleVisibility
string
reviewStatus
string
Examplegenerated
{ "roleId": "example", "roleVisibility": "example", "reviewStatus": "example"}