mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 15:14:47 +02:00
parent
90ed23f64d
commit
b6ecae6a35
41 changed files with 1239 additions and 61 deletions
|
@ -113,16 +113,17 @@ Update contact details for a contact.
|
|||
|
||||
#### Parameters
|
||||
|
||||
| Field name | Required | Type | Allowed values | Description |
|
||||
| ---- | --- | --- | --- | --- |
|
||||
| email | false | String | | New email address |
|
||||
| phone | false | String | | New phone number |
|
||||
| fax | false | String | | New fax number |
|
||||
| city | false | String | | New city name |
|
||||
| street | false | String | | New street name |
|
||||
| zip | false | String | | New zip code |
|
||||
| country_code | false | String | | New country code in 2 letter format ('EE', 'LV') |
|
||||
| state | false | String | | New state name |
|
||||
| Field name | Required | Type | Allowed values | Description |
|
||||
| ---- | --- | --- | --- | --- |
|
||||
| name | false | String | | New name |
|
||||
| email | false | String | | New email |
|
||||
| phone | false | String | | New phone number |
|
||||
| fax | false | String | | New fax number |
|
||||
| address[street] | false | String | | New street name |
|
||||
| address[zip] | false | String | | New zip |
|
||||
| address[city] | false | String | | New city name |
|
||||
| address[state] | false | String | | New state name |
|
||||
| address[country_code] | false | String | | New country code in 2 letter format (ISO 3166-1 alpha-2) |
|
||||
|
||||
|
||||
#### Request
|
||||
|
@ -133,14 +134,17 @@ Accept: application/json
|
|||
Content-type: application/json
|
||||
|
||||
{
|
||||
"name": "John Doe",
|
||||
"email": "foo@bar.baz",
|
||||
"phone": "+372.12345671",
|
||||
"fax": "+372.12345672",
|
||||
"city": "New City",
|
||||
"street": "Main Street 123",
|
||||
"zip": "22222",
|
||||
"country_code": "LV",
|
||||
"state": "New state"
|
||||
"address": {
|
||||
"street": "Main Street 123",
|
||||
"zip": "22222",
|
||||
"city": "New City",
|
||||
"state": "New state",
|
||||
"country_code": "LV"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
@ -151,33 +155,28 @@ HTTP/1.1 200
|
|||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"uuid": "84c62f3d-e56f-40fa-9ca4-dc0137778949",
|
||||
"domain_names": ["example.com"],
|
||||
"code": "REGISTRAR2:SH022086480",
|
||||
"phone": "+372.12345671",
|
||||
"email": "foo@bar.baz",
|
||||
"fax": "+372.12345672",
|
||||
"created_at": "2015-09-09T09:11:14.130Z",
|
||||
"updated_at": "2018-09-09T09:11:14.130Z",
|
||||
"ident": "37605030299",
|
||||
"ident_type": "priv",
|
||||
"auth_info": "password",
|
||||
"id": "84c62f3d-e56f-40fa-9ca4-dc0137778949",
|
||||
"name": "Karson Kessler0",
|
||||
"org_name": null,
|
||||
"registrar_id": 2,
|
||||
"creator_str": null,
|
||||
"updator_str": null,
|
||||
"ident_country_code": "EE",
|
||||
"city": "New City",
|
||||
"street": "Main Street 123",
|
||||
"zip": "22222",
|
||||
"country_code": "LV",
|
||||
"state": "New state"
|
||||
"legacy_id": null,
|
||||
"code": "REGISTRAR2:SH022086480",
|
||||
"ident": {
|
||||
"code": "37605030299",
|
||||
"type": "priv",
|
||||
"country_code": "EE"
|
||||
},
|
||||
"email": "foo@bar.baz",
|
||||
"phone": "+372.12345671",
|
||||
"fax": "+372.12345672",
|
||||
"address": {
|
||||
"street": "Main Street 123",
|
||||
"zip": "22222",
|
||||
"city": "New City",
|
||||
"state": "New state",
|
||||
"country_code": "LV"
|
||||
},
|
||||
"auth_info": "password",
|
||||
"statuses": [
|
||||
"ok"
|
||||
],
|
||||
"status_notes": {}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -187,8 +186,8 @@ HTTP/1.1 400
|
|||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"errors": [
|
||||
{ "phone": "Phone nr is invalid" }
|
||||
]
|
||||
"errors": {
|
||||
"phone": ["Phone nr is invalid"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue