Skip to main content

Create person mobile number

POST /api/v1/PersonNumber/Create

Description

This endpoint is used to create a new person mobile number.

Tags: PersonNumber

URL:
/api/v{version}/PersonNumber/Create

ApiKey:
No API key required

Content-Type:
application/json, text/json, application/*+json

Query Parameters:
version: string, required
Accept-Language: header, optional, change the default response message language from English(en) to French(fr) or English(en)

Request Body:
CreatePersonMobileNumber

Response:
Success, returns the created person mobile number.
400: Bad Request
404: Not Found

Example:

JSON

POST /api/v1/PersonNumber/Create
{
"PhoneNumber": "+1234567890",
"Type": "Mobile"
}

HTTP/1.1 200 OK
{
"Message": "Person number successfully created"
}

/api/v`{{version}}`/PersonNumber/Create

Headers

Content-TypeValue
Accept-Language

Headers

Content-TypeValue
Content-Typeapplication/json

Headers

Content-TypeValue
Accepttext/plain

Body (raw)

{
"personId": `<uuid>`,
"mobileNumber": `<string>`,
"phoneNumberCode": `<string>`,
"userId": `<uuid>`
}

Response: 200

{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": `<string>`
}

Response: 400

{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": `<string>`
}

Response: 404

{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": `<string>`
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request POST \ 
--url /api/v1/PersonNumber/Create \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!