Skip to main content

Update director

PUT 

https://api.publicsquare.com/business/directors/:id

Update an existing business director in the Account.

Permissions

  • business:write

Request

Path Parameters

    id stringrequired

Bodyrequired

    titlestringrequired

    Job title

    Possible values: non-empty and <= 100 characters

    Example: CEO
    first_namestringrequired

    First name

    Possible values: non-empty and <= 100 characters

    Example: John
    last_namestringrequired

    Last name

    Possible values: non-empty and <= 100 characters

    Example: Smith
    date_of_birthdate-timerequired

    Date of birth

    Example: 1980-11-15
    country_of_residencestringrequired

    2 character ISO country code

    Possible values: non-empty and <= 2 characters

    Example: US

Responses

OK

Schema
    idstringnullable

    Business director ID

    Example: dir_9azmvTSrmsavsWEWKMJKgRTYT
    account_idstringnullable

    Account ID

    Example: acc_B518niGwGYKzig6vtrRVZGGGV
    created_atdate-timenullable

    Date business director was created

    Example: 2024-06-30T01:02:29.212Z
    modified_atdate-timenullable

    Date business director was modified

    Example: 2024-06-30T01:02:29.212Z
    titlestringrequired

    Job title

    Possible values: non-empty and <= 100 characters

    Example: CEO
    first_namestringrequired

    First name

    Possible values: non-empty and <= 100 characters

    Example: John
    last_namestringrequired

    Last name

    Possible values: non-empty and <= 100 characters

    Example: Smith
    date_of_birthdate-timerequired

    Date of birth

    Example: 1980-11-15
    country_of_residencestringrequired

    2 character ISO country code

    Possible values: non-empty and <= 2 characters

    Example: US

Authorization: X-API-KEY

name: X-API-KEYtype: apiKeyscopes: business:writedescription: Authorization by API Key inside request's X-API-KEY headerin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://api.publicsquare.com/business/directors/:id");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("X-API-KEY", "<X-API-KEY>");
var content = new StringContent("{\n \"title\": \"CEO\",\n \"first_name\": \"John\",\n \"last_name\": \"Smith\",\n \"date_of_birth\": \"1980-11-15\",\n \"country_of_residence\": \"US\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.publicsquare.com
Auth
Parameters
— pathrequired
Body required
{
  "title": "CEO",
  "first_name": "John",
  "last_name": "Smith",
  "date_of_birth": "1980-11-15",
  "country_of_residence": "US"
}
ResponseClear

Click the Send API Request button above and see the response here!