Update the authenticated workspace user's profile fields.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Put, RequestUri = new Uri("https://example.com/api/workspace/account/profile"), Content = new StringContent("{ \"UserName\": \"example\", \"Email\": \"example\", \"FirstName\": \"example\", \"LastName\": \"example\" }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/account/profile';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"UserName":"example","Email":"example","FirstName":"example","LastName":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/workspace/account/profile \ --header 'Content-Type: application/json' \ --data '{ "UserName": "example", "Email": "example", "FirstName": "example", "LastName": "example" }'Service accounts cannot access this endpoint via API keys.
Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Request payload to update the authenticated workspace account profile.
object
Login user name.
Optional email address.
First name.
Last name.
Examplegenerated
{ "UserName": "example", "Email": "example", "FirstName": "example", "LastName": "example"}Request payload to update the authenticated workspace account profile.
object
Login user name.
Optional email address.
First name.
Last name.
Examplegenerated
{ "UserName": "example", "Email": "example", "FirstName": "example", "LastName": "example"}Request payload to update the authenticated workspace account profile.
object
Login user name.
Optional email address.
First name.
Last name.
Examplegenerated
{ "UserName": "example", "Email": "example", "FirstName": "example", "LastName": "example"}Responses
Section titled “Responses”OK
object
Profile fields for the authenticated workspace account.
object
Workspace user identifier.
Login user name.
Optional email address.
First name.
Last name.
object
object
object
object
Example
{ "Data": { "UserType": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Profile fields for the authenticated workspace account.
object
Workspace user identifier.
Login user name.
Optional email address.
First name.
Last name.
object
object
object
object
Example
{ "Data": { "UserType": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Profile fields for the authenticated workspace account.
object
Workspace user identifier.
Login user name.
Optional email address.
First name.
Last name.
object
object
object
object
Example
{ "Data": { "UserType": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}