Create Address

POST https://{{host}}/v3/addresses

Creates an Address that can be assigned to an Identity.

Request Body Scheme

{

data (object, required) {

type (string, required): addresses

attributes (object, required) {

city_name (string, required)
City name of the address.

postal_code (string, required)
Postal code of the address.

address (string, required)
Full address.

description (string, optional)
The description of the address.

}

relationships (object, required) {

identity (object, required): to-one
Specifies the Identity for the address.

country (object , required): to-one
Specifies the Country for the address.

}

}

}

Request Body Example

Simple Resource Patch
{
  "data": {
    "type": "addresses",
    "attributes": {
      "city_name": "string",
      "postal_code": "string",
      "address": "string",
      "description": "string"
    },
    "relationships": {
      "identity": {
        "data": {
          "id": "identity_id_string",
          "type": "identities"
        }
      },
      "country": {
        "data": {
          "id": "country_id_string",
          "type": "countries"
        }
      }
    }
  }
}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
Content-Typestring
Api-Keystring

RESPONSES

status: Created

{"data":{"id":"49f09b7f-c5bf-4c90-bac1-a8b335d2c3f0","type":"addresses","attributes":{"city_name":"string","postal_code":"string","address":"string","description":"string","created_at":"2020-09-16T10:23:07.846Z","verified":false},"relationships":{"identity":{"links":{"self":"https://api.didww.com/v3/addresses/49f09b7f-c5bf-4c90-bac1-a8b335d2c3f0/relationships/identity","related":"https://api.didww.com/v3/addresses/49f09b7f-c5bf-4c90-bac1-a8b335d2c3f0/identity"}},"country":{"links":{"self":"https://api.didww.com/v3/addresses/49f09b7f-c5bf-4c90-bac1-a8b335d2c3f0/relationships/country","related":"https://api.didww.com/v3/addresses/49f09b7f-c5bf-4c90-bac1-a8b335d2c3f0/country"}},"proofs":{"links":{"self":"https://api.didww.com/v3/addresses/49f09b7f-c5bf-4c90-bac1-a8b335d2c3f0/relationships/proofs","related":"https://api.didww.com/v3/addresses/49f09b7f-c5bf-4c90-bac1-a8b335d2c3f0/proofs"}},"area":{"links":{"self":"https://api.didww.com/v3/addresses/49f09b7f-c5bf-4c90-bac1-a8b335d2c3f0/relationships/area","related":"https://api.didww.com/v3/addresses/49f09b7f-c5bf-4c90-bac1-a8b335d2c3f0/area"}},"city":{"links":{"self":"https://api.didww.com/v3/addresses/49f09b7f-c5bf-4c90-bac1-a8b335d2c3f0/relationships/city","related":"https://api.didww.com/v3/addresses/49f09b7f-c5bf-4c90-bac1-a8b335d2c3f0/city"}}}},"meta":{"api_version":"2022-05-10"}}