{"openapi":"3.0.0","info":{"title":"OVHcloud API specification","description":"Specification for OVHcloud API","version":"1.0","contact":{"name":"OVH","email":"api@ml.ovh.net"}},"servers":[{"url":"https://api.eu.ovhcloud.com/1.0"}],"components":{"schemas":{"any":{"description":"Can be anything (text, int, bool, json, html, etc.)","example":"This is a content of any type !"},"domain.Contact":{"type":"object","description":"A contact contains the personal data of a user","properties":{"accreditationCountry":{"allOf":[{"$ref":"#/components/schemas/nichandle.CountryEnum"}],"description":"Country of lawyer accreditation","nullable":true},"accreditationId":{"type":"string","description":"Lawyer accreditation number","nullable":true},"accreditationOrganism":{"type":"string","description":"Organism of lawyer accreditation","nullable":true},"accreditationYear":{"type":"integer","description":"Year of lawyer accreditation","nullable":true},"address":{"allOf":[{"$ref":"#/components/schemas/domain.ContactAddress"}],"description":"The address of the contact","nullable":true},"birthCity":{"type":"string","description":"City of birth","nullable":true},"birthCountry":{"allOf":[{"$ref":"#/components/schemas/nichandle.CountryEnum"}],"description":"Birth Country","nullable":true},"birthDay":{"type":"string","description":"Birth date","nullable":true,"format":"date"},"birthZip":{"type":"string","description":"Birth Zipcode","nullable":true},"cellPhone":{"allOf":[{"$ref":"#/components/schemas/phoneNumber"}],"description":"Cellphone number","nullable":true},"companyNationalIdentificationNumber":{"type":"string","description":"Company National Identification Number","nullable":true},"email":{"type":"string","description":"Email address","nullable":true},"enterpriseId":{"type":"string","description":"Enterprise identifier","nullable":true},"fax":{"type":"string","description":"Fax number","nullable":true},"firstName":{"type":"string","description":"First name","nullable":true},"gender":{"allOf":[{"$ref":"#/components/schemas/nichandle.GenderEnum"}],"description":"Gender","nullable":true},"id":{"type":"integer","description":"Unique identifier","readOnly":true},"insee":{"type":"string","description":"INSEE identifier","nullable":true},"language":{"allOf":[{"$ref":"#/components/schemas/nichandle.LanguageEnum"}],"description":"Language","nullable":true},"lastName":{"type":"string","description":"Last name","nullable":true},"legalForm":{"allOf":[{"$ref":"#/components/schemas/nichandle.LegalFormEnum"}],"nullable":true},"legalFormCategory":{"type":"string","description":"category of legalForm","nullable":true},"nationalIdentificationNumber":{"type":"string","description":"National Identification Number","nullable":true},"nationality":{"allOf":[{"$ref":"#/components/schemas/nichandle.CountryEnum"}],"description":"Nationality","nullable":true},"organisationAccountable":{"type":"string","description":"To whom is the organisation accountable","nullable":true},"organisationFunding":{"type":"string","description":"What is the source of funding","nullable":true},"organisationFundingOther":{"type":"string","description":"Explain the source of funding if organisationFunding is other","nullable":true},"organisationName":{"type":"string","description":"Name of organisation","nullable":true},"organisationRole":{"type":"string","description":"Role of your organisation","nullable":true},"organisationRoleOther":{"type":"string","description":"Explain the role of your organisation if organisationRole is other","nullable":true},"organisationStaffStatus":{"type":"string","description":"Status of the staff","nullable":true},"organisationStaffStatusOther":{"type":"string","description":"Explain the status of the staff if organisationStaffStatus is other","nullable":true},"organisationType":{"type":"string","description":"type of organisation","nullable":true},"organisationTypeOther":{"type":"string","description":"Explain the type of organisation if organisationType is other","nullable":true},"phone":{"allOf":[{"$ref":"#/components/schemas/phoneNumber"}],"description":"Phone number","nullable":true},"registrantDocumentType":{"type":"string","description":"Type of registrant document","nullable":true},"registrantDocumentTypeOther":{"type":"string","description":"Explain the type of registrant document if registrantDocumentType is other","nullable":true},"roleInOrganisation":{"type":"string","description":"The role in the organisation","nullable":true},"trademarkId":{"type":"string","description":"Trademark related to the contact","nullable":true},"vat":{"type":"string","description":"VAT number","nullable":true},"website":{"type":"string","description":"Website","nullable":true}}},"domain.ContactAddress":{"type":"object","description":"Missing description","properties":{"city":{"type":"string","description":"City","nullable":true},"country":{"allOf":[{"$ref":"#/components/schemas/nichandle.CountryEnum"}],"description":"Country","nullable":true},"line1":{"type":"string","description":"Address line 1","nullable":true},"line2":{"type":"string","description":"Address line 2","nullable":true},"line3":{"type":"string","description":"Address line 3","nullable":true},"otherDetails":{"type":"string","description":"Others details","nullable":true},"province":{"type":"string","description":"Province","nullable":true},"zip":{"type":"string","description":"Zip code","nullable":true}}},"duration":{"type":"string","description":"Duration (e.g., P1Y2M3DT4H6M9S)","example":"P1Y2M3DT4H6M9S"},"email":{"type":"string","description":"Email address (e.g., api@ml.ovh.net)","format":"email","example":"api@ml.ovh.net"},"internationalPhoneNumber":{"type":"string","description":"International phone number","format":"phone-number"},"ip":{"type":"string","description":"IP address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipBlock":{"type":"string","description":"IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)","format":"ip-block","example":"192.0.2.0/24"},"ipInterface":{"type":"string","description":"IP address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipv4":{"type":"string","description":"IPv4 address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipv4Block":{"type":"string","description":"IPv4 CIDR notation (e.g., 192.0.2.0/24)","format":"ipv4-block","example":"192.0.2.0/24"},"ipv6":{"type":"string","description":"IPv6 address (e.g., 2001:41d0:1:1994::1)","format":"ipv6","example":"2001:41d0:1:1994::1"},"ipv6Block":{"type":"string","description":"IPv6 CIDR notation (e.g., 2001:41d0::/128)","format":"ipv6-block","example":"2001:41d0::/128"},"macAddress":{"type":"string","description":"MAC address (e.g., 00:00:5e:00:53:01)","format":"mac-address","example":"00:00:5e:00:53:01"},"nichandle.CountryEnum":{"type":"string","description":"Countries a nichandle can choose","enum":["AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","UNKNOWN","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"]},"nichandle.GenderEnum":{"type":"string","description":"All genders a person can choose","enum":["female","male"]},"nichandle.LanguageEnum":{"type":"string","description":"Languages a nichandle can choose","enum":["cs_CZ","de_DE","en_AU","en_CA","en_GB","en_IE","en_US","es_ES","fi_FI","fr_CA","fr_FR","fr_MA","fr_SN","fr_TN","it_IT","lt_LT","nl_NL","pl_PL","pt_PT"]},"nichandle.LegalFormEnum":{"type":"string","description":"Legal forms a nichandle can be registered as","enum":["administration","association","corporation","individual","other","personalcorporation"]},"phoneNumber":{"type":"string","description":"Phone number","format":"phone-number"},"services.changeContact":{"type":"object","description":"Service change contact payload","properties":{"contactAdmin":{"type":"string","description":"The contact to set as admin contact"},"contactBilling":{"type":"string","description":"The contact to set as billing contact"},"contactTech":{"type":"string","description":"The contact to set as tech contact"}}},"time":{"type":"string","description":"Time (e.g., 15:04:05)","format":"time","example":"15:04:05"}},"securitySchemes":{"oAuth2AuthCode":{"type":"oauth2","description":"Oauth2","x-client-id":"1bb9c7df371741c0","x-client-secret":"a5b4de870aca620d10fbf63cd18d205b","flows":{"authorizationCode":{"authorizationUrl":"https://auth.eu.ovhcloud.com/oauth2/authorize","tokenUrl":"https://auth.eu.ovhcloud.com/oauth2/token","scopes":{"account/all":"Manage your account","all":"Manage your whole account and all your services","services/all":"Manage your services lifecycle and billing"}}}}}},"paths":{"/domain/contact":{"get":{"operationId":"getContacts","summary":"List all contacts","security":[{"oAuth2AuthCode":[]}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/domain.Contact"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Domains","Contacts@@@10"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/domain/contact\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/domain/contact\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:domain/contact/get","required":true}],"x-response-identifier":"id","x-expanded-response":"DomainContact"},"post":{"operationId":"createContact","summary":"Create a contact","security":[{"oAuth2AuthCode":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/domain.Contact"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/domain.Contact"}}}}},"x-developer-hub-navigation":[["Web Cloud","Domains","Contacts@@@30"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: domain.Contact\nresult = client.post(\"/domain/contact\",\n\taccreditationCountry = None, # Country of lawyer accreditation (type: nichandle.CountryEnum, nullable)\n\taccreditationId = None, # Lawyer accreditation number (type: string, nullable)\n\taccreditationOrganism = None, # Organism of lawyer accreditation (type: string, nullable)\n\taccreditationYear = None, # Year of lawyer accreditation (type: integer, nullable)\n\taddress = None, # The address of the contact (type: domain.ContactAddress, nullable)\n\tbirthCity = None, # City of birth (type: string, nullable)\n\tbirthCountry = None, # Birth Country (type: nichandle.CountryEnum, nullable)\n\tbirthDay = None, # Birth date (type: string, nullable)\n\tbirthZip = None, # Birth Zipcode (type: string, nullable)\n\tcellPhone = None, # Cellphone number (type: phoneNumber, nullable)\n\tcompanyNationalIdentificationNumber = None, # Company National Identification Number (type: string, nullable)\n\temail = None, # Email address (type: string, nullable)\n\tenterpriseId = None, # Enterprise identifier (type: string, nullable)\n\tfax = None, # Fax number (type: string, nullable)\n\tfirstName = None, # First name (type: string, nullable)\n\tgender = None, # Gender (type: nichandle.GenderEnum, nullable)\n\tinsee = None, # INSEE identifier (type: string, nullable)\n\tlanguage = None, # Language (type: nichandle.LanguageEnum, nullable)\n\tlastName = None, # Last name (type: string, nullable)\n\tlegalForm = None, #  (type: nichandle.LegalFormEnum, nullable)\n\tlegalFormCategory = None, # category of legalForm (type: string, nullable)\n\tnationalIdentificationNumber = None, # National Identification Number (type: string, nullable)\n\tnationality = None, # Nationality (type: nichandle.CountryEnum, nullable)\n\torganisationAccountable = None, # To whom is the organisation accountable (type: string, nullable)\n\torganisationFunding = None, # What is the source of funding (type: string, nullable)\n\torganisationFundingOther = None, # Explain the source of funding if organisationFunding is other (type: string, nullable)\n\torganisationName = None, # Name of organisation (type: string, nullable)\n\torganisationRole = None, # Role of your organisation (type: string, nullable)\n\torganisationRoleOther = None, # Explain the role of your organisation if organisationRole is other (type: string, nullable)\n\torganisationStaffStatus = None, # Status of the staff (type: string, nullable)\n\torganisationStaffStatusOther = None, # Explain the status of the staff if organisationStaffStatus is other (type: string, nullable)\n\torganisationType = None, # type of organisation (type: string, nullable)\n\torganisationTypeOther = None, # Explain the type of organisation if organisationType is other (type: string, nullable)\n\tphone = None, # Phone number (type: phoneNumber, nullable)\n\tregistrantDocumentType = None, # Type of registrant document (type: string, nullable)\n\tregistrantDocumentTypeOther = None, # Explain the type of registrant document if registrantDocumentType is other (type: string, nullable)\n\troleInOrganisation = None, # The role in the organisation (type: string, nullable)\n\ttrademarkId = None, # Trademark related to the contact (type: string, nullable)\n\tvat = None, # VAT number (type: string, nullable)\n\twebsite = None, # Website (type: string, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: domain.Contact\n$result = $ovh->post(\"/domain/contact\", array(\n\taccreditationCountry => null, // Country of lawyer accreditation (type: nichandle.CountryEnum, nullable)\n\taccreditationId => null, // Lawyer accreditation number (type: string, nullable)\n\taccreditationOrganism => null, // Organism of lawyer accreditation (type: string, nullable)\n\taccreditationYear => null, // Year of lawyer accreditation (type: integer, nullable)\n\taddress => null, // The address of the contact (type: domain.ContactAddress, nullable)\n\tbirthCity => null, // City of birth (type: string, nullable)\n\tbirthCountry => null, // Birth Country (type: nichandle.CountryEnum, nullable)\n\tbirthDay => null, // Birth date (type: string, nullable)\n\tbirthZip => null, // Birth Zipcode (type: string, nullable)\n\tcellPhone => null, // Cellphone number (type: phoneNumber, nullable)\n\tcompanyNationalIdentificationNumber => null, // Company National Identification Number (type: string, nullable)\n\temail => null, // Email address (type: string, nullable)\n\tenterpriseId => null, // Enterprise identifier (type: string, nullable)\n\tfax => null, // Fax number (type: string, nullable)\n\tfirstName => null, // First name (type: string, nullable)\n\tgender => null, // Gender (type: nichandle.GenderEnum, nullable)\n\tinsee => null, // INSEE identifier (type: string, nullable)\n\tlanguage => null, // Language (type: nichandle.LanguageEnum, nullable)\n\tlastName => null, // Last name (type: string, nullable)\n\tlegalForm => null, //  (type: nichandle.LegalFormEnum, nullable)\n\tlegalFormCategory => null, // category of legalForm (type: string, nullable)\n\tnationalIdentificationNumber => null, // National Identification Number (type: string, nullable)\n\tnationality => null, // Nationality (type: nichandle.CountryEnum, nullable)\n\torganisationAccountable => null, // To whom is the organisation accountable (type: string, nullable)\n\torganisationFunding => null, // What is the source of funding (type: string, nullable)\n\torganisationFundingOther => null, // Explain the source of funding if organisationFunding is other (type: string, nullable)\n\torganisationName => null, // Name of organisation (type: string, nullable)\n\torganisationRole => null, // Role of your organisation (type: string, nullable)\n\torganisationRoleOther => null, // Explain the role of your organisation if organisationRole is other (type: string, nullable)\n\torganisationStaffStatus => null, // Status of the staff (type: string, nullable)\n\torganisationStaffStatusOther => null, // Explain the status of the staff if organisationStaffStatus is other (type: string, nullable)\n\torganisationType => null, // type of organisation (type: string, nullable)\n\torganisationTypeOther => null, // Explain the type of organisation if organisationType is other (type: string, nullable)\n\tphone => null, // Phone number (type: phoneNumber, nullable)\n\tregistrantDocumentType => null, // Type of registrant document (type: string, nullable)\n\tregistrantDocumentTypeOther => null, // Explain the type of registrant document if registrantDocumentType is other (type: string, nullable)\n\troleInOrganisation => null, // The role in the organisation (type: string, nullable)\n\ttrademarkId => null, // Trademark related to the contact (type: string, nullable)\n\tvat => null, // VAT number (type: string, nullable)\n\twebsite => null, // Website (type: string, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:domain/contact/create","required":true}]}},"/domain/contact/{contactId}":{"get":{"operationId":"getContact","summary":"Get details about a contact","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"contactId","description":"Contact ID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/domain.Contact"}}}}},"x-developer-hub-navigation":[["Web Cloud","Domains","Contacts@@@20"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/domain/contact/{contactId}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/domain/contact/{contactId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:domain/contact/get","required":true}],"x-response-identifier":"id"},"put":{"operationId":"updateContact","summary":"Update a contact","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"contactId","description":"Contact ID","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/domain.Contact"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/domain.Contact"}}}}},"x-developer-hub-navigation":[["Web Cloud","Domains","Contacts@@@40"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: domain.Contact\nresult = client.put(\"/domain/contact/{contactId}\",\n\taccreditationCountry = None, # Country of lawyer accreditation (type: nichandle.CountryEnum, nullable)\n\taccreditationId = None, # Lawyer accreditation number (type: string, nullable)\n\taccreditationOrganism = None, # Organism of lawyer accreditation (type: string, nullable)\n\taccreditationYear = None, # Year of lawyer accreditation (type: integer, nullable)\n\taddress = None, # The address of the contact (type: domain.ContactAddress, nullable)\n\tbirthCity = None, # City of birth (type: string, nullable)\n\tbirthCountry = None, # Birth Country (type: nichandle.CountryEnum, nullable)\n\tbirthDay = None, # Birth date (type: string, nullable)\n\tbirthZip = None, # Birth Zipcode (type: string, nullable)\n\tcellPhone = None, # Cellphone number (type: phoneNumber, nullable)\n\tcompanyNationalIdentificationNumber = None, # Company National Identification Number (type: string, nullable)\n\temail = None, # Email address (type: string, nullable)\n\tenterpriseId = None, # Enterprise identifier (type: string, nullable)\n\tfax = None, # Fax number (type: string, nullable)\n\tfirstName = None, # First name (type: string, nullable)\n\tgender = None, # Gender (type: nichandle.GenderEnum, nullable)\n\tinsee = None, # INSEE identifier (type: string, nullable)\n\tlanguage = None, # Language (type: nichandle.LanguageEnum, nullable)\n\tlastName = None, # Last name (type: string, nullable)\n\tlegalForm = None, #  (type: nichandle.LegalFormEnum, nullable)\n\tlegalFormCategory = None, # category of legalForm (type: string, nullable)\n\tnationalIdentificationNumber = None, # National Identification Number (type: string, nullable)\n\tnationality = None, # Nationality (type: nichandle.CountryEnum, nullable)\n\torganisationAccountable = None, # To whom is the organisation accountable (type: string, nullable)\n\torganisationFunding = None, # What is the source of funding (type: string, nullable)\n\torganisationFundingOther = None, # Explain the source of funding if organisationFunding is other (type: string, nullable)\n\torganisationName = None, # Name of organisation (type: string, nullable)\n\torganisationRole = None, # Role of your organisation (type: string, nullable)\n\torganisationRoleOther = None, # Explain the role of your organisation if organisationRole is other (type: string, nullable)\n\torganisationStaffStatus = None, # Status of the staff (type: string, nullable)\n\torganisationStaffStatusOther = None, # Explain the status of the staff if organisationStaffStatus is other (type: string, nullable)\n\torganisationType = None, # type of organisation (type: string, nullable)\n\torganisationTypeOther = None, # Explain the type of organisation if organisationType is other (type: string, nullable)\n\tphone = None, # Phone number (type: phoneNumber, nullable)\n\tregistrantDocumentType = None, # Type of registrant document (type: string, nullable)\n\tregistrantDocumentTypeOther = None, # Explain the type of registrant document if registrantDocumentType is other (type: string, nullable)\n\troleInOrganisation = None, # The role in the organisation (type: string, nullable)\n\ttrademarkId = None, # Trademark related to the contact (type: string, nullable)\n\tvat = None, # VAT number (type: string, nullable)\n\twebsite = None, # Website (type: string, nullable)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: domain.Contact\n$result = $ovh->put(\"/domain/contact/{contactId}\", array(\n\taccreditationCountry => null, // Country of lawyer accreditation (type: nichandle.CountryEnum, nullable)\n\taccreditationId => null, // Lawyer accreditation number (type: string, nullable)\n\taccreditationOrganism => null, // Organism of lawyer accreditation (type: string, nullable)\n\taccreditationYear => null, // Year of lawyer accreditation (type: integer, nullable)\n\taddress => null, // The address of the contact (type: domain.ContactAddress, nullable)\n\tbirthCity => null, // City of birth (type: string, nullable)\n\tbirthCountry => null, // Birth Country (type: nichandle.CountryEnum, nullable)\n\tbirthDay => null, // Birth date (type: string, nullable)\n\tbirthZip => null, // Birth Zipcode (type: string, nullable)\n\tcellPhone => null, // Cellphone number (type: phoneNumber, nullable)\n\tcompanyNationalIdentificationNumber => null, // Company National Identification Number (type: string, nullable)\n\temail => null, // Email address (type: string, nullable)\n\tenterpriseId => null, // Enterprise identifier (type: string, nullable)\n\tfax => null, // Fax number (type: string, nullable)\n\tfirstName => null, // First name (type: string, nullable)\n\tgender => null, // Gender (type: nichandle.GenderEnum, nullable)\n\tinsee => null, // INSEE identifier (type: string, nullable)\n\tlanguage => null, // Language (type: nichandle.LanguageEnum, nullable)\n\tlastName => null, // Last name (type: string, nullable)\n\tlegalForm => null, //  (type: nichandle.LegalFormEnum, nullable)\n\tlegalFormCategory => null, // category of legalForm (type: string, nullable)\n\tnationalIdentificationNumber => null, // National Identification Number (type: string, nullable)\n\tnationality => null, // Nationality (type: nichandle.CountryEnum, nullable)\n\torganisationAccountable => null, // To whom is the organisation accountable (type: string, nullable)\n\torganisationFunding => null, // What is the source of funding (type: string, nullable)\n\torganisationFundingOther => null, // Explain the source of funding if organisationFunding is other (type: string, nullable)\n\torganisationName => null, // Name of organisation (type: string, nullable)\n\torganisationRole => null, // Role of your organisation (type: string, nullable)\n\torganisationRoleOther => null, // Explain the role of your organisation if organisationRole is other (type: string, nullable)\n\torganisationStaffStatus => null, // Status of the staff (type: string, nullable)\n\torganisationStaffStatusOther => null, // Explain the status of the staff if organisationStaffStatus is other (type: string, nullable)\n\torganisationType => null, // type of organisation (type: string, nullable)\n\torganisationTypeOther => null, // Explain the type of organisation if organisationType is other (type: string, nullable)\n\tphone => null, // Phone number (type: phoneNumber, nullable)\n\tregistrantDocumentType => null, // Type of registrant document (type: string, nullable)\n\tregistrantDocumentTypeOther => null, // Explain the type of registrant document if registrantDocumentType is other (type: string, nullable)\n\troleInOrganisation => null, // The role in the organisation (type: string, nullable)\n\ttrademarkId => null, // Trademark related to the contact (type: string, nullable)\n\tvat => null, // VAT number (type: string, nullable)\n\twebsite => null, // Website (type: string, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"account:apiovh:domain/contact/edit","required":true}]}},"/domain/{serviceName}/changeContact":{"post":{"summary":"Launch a contact change procedure","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services.changeContact"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Domains","Contacts@@@50"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: services.changeContact\nresult = client.post(\"/domain/{serviceName}/changeContact\",\n\tcontactAdmin = None, # The contact to set as admin contact (type: string)\n\tcontactBilling = None, # The contact to set as billing contact (type: string)\n\tcontactTech = None, # The contact to set as tech contact (type: string)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: services.changeContact\n$result = $ovh->post(\"/domain/{serviceName}/changeContact\", array(\n\tcontactAdmin => null, // The contact to set as admin contact (type: string)\n\tcontactBilling => null, // The contact to set as billing contact (type: string)\n\tcontactTech => null, // The contact to set as tech contact (type: string)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"domain:apiovh:changeContact","required":true}]}}}}
