Update registrant api doc

This commit is contained in:
Thiago Youssef 2022-07-20 10:07:19 -03:00 committed by olegphenomenon
parent 057f026cc0
commit eb2c023e2a
2 changed files with 15 additions and 13 deletions

View file

@ -102,18 +102,19 @@ Update contact.
#### Parameters #### Parameters
| Field name | Required | Type | Allowed values | Description | | Field name | Required | Type | Allowed values | Description |
| ---- | --- | --- | --- | --- | | ---- | --- | --- | --- | --- |
| name | false | String | | New name | | name | false | String | | New name |
| email | false | String | | New email | | email | false | String | | New email |
| phone | false | String | | New phone number | | phone | false | String | | New phone number |
| fax | false | String | | New fax number | | fax | false | String | | New fax number |
| address[street] | false | String | | New street name | | address[street] | false | String | | New street name |
| address[zip] | false | String | | New zip | | address[zip] | false | String | | New zip |
| address[city] | false | String | | New city name | | address[city] | false | String | | New city name |
| address[state] | false | String | | New state 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) | | 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" | disclosed_attributes | false | Array | | Possible values: "name", "email", "phone" |
| registrant_publishable | false | Boolean | | Possible values: true, false |
#### Request #### Request

View file

@ -38,7 +38,8 @@ class RegistrantApiV1ContactDetailsTest < ActionDispatch::IntegrationTest
}, },
auth_info: @contact.auth_info, auth_info: @contact.auth_info,
statuses: @contact.statuses, 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) JSON.parse(response.body, symbolize_names: true)
end end