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" }'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
Exact Unicode login name. Lookup uniqueness uses trim, NFC, and invariant uppercase.
Optional email address.
First name. Omit together with LastName when names are managed by an associated Worker.
Last name. Omit together with FirstName when names are managed by an associated Worker.
Examplegenerated
{ "UserName": "example", "Email": "example", "FirstName": "example", "LastName": "example"}Request payload to update the authenticated workspace account profile.
object
Exact Unicode login name. Lookup uniqueness uses trim, NFC, and invariant uppercase.
Optional email address.
First name. Omit together with LastName when names are managed by an associated Worker.
Last name. Omit together with FirstName when names are managed by an associated Worker.
Examplegenerated
{ "UserName": "example", "Email": "example", "FirstName": "example", "LastName": "example"}Request payload to update the authenticated workspace account profile.
object
Exact Unicode login name. Lookup uniqueness uses trim, NFC, and invariant uppercase.
Optional email address.
First name. Omit together with LastName when names are managed by an associated Worker.
Last name. Omit together with FirstName when names are managed by an associated Worker.
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.
Exact stored Unicode login name.
Optional email address.
First name.
Last name.
Canonical effective display name.
Avatar presentation values for a workspace user.
object
Initials derived from the user name.
Hex color for the avatar background.
Hex color for the avatar text.
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.
Exact stored Unicode login name.
Optional email address.
First name.
Last name.
Canonical effective display name.
Avatar presentation values for a workspace user.
object
Initials derived from the user name.
Hex color for the avatar background.
Hex color for the avatar text.
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.
Exact stored Unicode login name.
Optional email address.
First name.
Last name.
Canonical effective display name.
Avatar presentation values for a workspace user.
object
Initials derived from the user name.
Hex color for the avatar background.
Hex color for the avatar text.
object
object
object
object
Example
{ "Data": { "UserType": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}