mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 14:36:22 +02:00
Update registrant api doc
This commit is contained in:
parent
057f026cc0
commit
eb2c023e2a
2 changed files with 15 additions and 13 deletions
|
@ -102,18 +102,19 @@ Update contact.
|
|||
|
||||
#### Parameters
|
||||
|
||||
| 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) |
|
||||
| disclosed_attributes | false | Array | | Possible values: "name", "email", "phone"
|
||||
| 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) |
|
||||
| disclosed_attributes | false | Array | | Possible values: "name", "email", "phone" |
|
||||
| registrant_publishable | false | Boolean | | Possible values: true, false |
|
||||
|
||||
|
||||
#### Request
|
||||
|
|
|
@ -38,7 +38,8 @@ class RegistrantApiV1ContactDetailsTest < ActionDispatch::IntegrationTest
|
|||
},
|
||||
auth_info: @contact.auth_info,
|
||||
statuses: @contact.statuses,
|
||||
disclosed_attributes: @contact.disclosed_attributes }),
|
||||
disclosed_attributes: @contact.disclosed_attributes,
|
||||
registrant_publishable: @contact.registrant_publishable }),
|
||||
JSON.parse(response.body, symbolize_names: true)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue