# Company

## Performs the Get operation.

> Use this endpoint to execute the get workflow in CompanyController.\
> \
> Required roles: Admin.

```json
{"openapi":"3.0.1","info":{"title":"WebApi | v1","version":"1.0.0"},"tags":[{"name":"Company"}],"servers":[{"url":"https://api.safegpt.nl/"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"JWT bearer token. Example: 'Bearer {token}'.","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/v1/Company/Get/{companyId}":{"get":{"tags":["Company"],"summary":"Performs the Get operation.","description":"Use this endpoint to execute the get workflow in CompanyController.\n\nRequired roles: Admin.","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"},"401":{"description":"Authentication is required."},"403":{"description":"The user is not authorized to access this endpoint."}}}}}}
```

## Update company.

> Use this endpoint to update company.\
> \
> Required roles: Admin.

```json
{"openapi":"3.0.1","info":{"title":"WebApi | v1","version":"1.0.0"},"tags":[{"name":"Company"}],"servers":[{"url":"https://api.safegpt.nl/"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"JWT bearer token. Example: 'Bearer {token}'.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"UpdateCompanyViewModel":{"required":["companyName"],"type":"object","properties":{"companyName":{"type":"string"},"uiLanguage":{"$ref":"#/components/schemas/UILanguage"},"mfaPolicyType":{"$ref":"#/components/schemas/NullableOfMfaPolicyType"},"forceSsoForUsers":{"type":"boolean","description":"Gets or sets whether SSO is enforced for all non-privileged users.","nullable":true}},"description":"Represents the payload for updating company settings."},"UILanguage":{"type":"integer","description":"Gets or sets the default user-interface language for the company."},"NullableOfMfaPolicyType":{"type":"integer","description":"Gets or sets the multi-factor authentication policy to apply.","nullable":true}}},"paths":{"/v1/Company/Update/{companyId}":{"put":{"tags":["Company"],"summary":"Update company.","description":"Use this endpoint to update company.\n\nRequired roles: Admin.","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompanyViewModel"}},"text/json":{"schema":{"$ref":"#/components/schemas/UpdateCompanyViewModel"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/UpdateCompanyViewModel"}}},"required":true},"responses":{"200":{"description":"OK"},"401":{"description":"Authentication is required."},"403":{"description":"The user is not authorized to access this endpoint."}}}}}}
```

## Delete company.

> Use this endpoint to delete company.\
> \
> Required roles: Admin.

```json
{"openapi":"3.0.1","info":{"title":"WebApi | v1","version":"1.0.0"},"tags":[{"name":"Company"}],"servers":[{"url":"https://api.safegpt.nl/"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"JWT bearer token. Example: 'Bearer {token}'.","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/v1/Company/Delete/{companyId}":{"delete":{"tags":["Company"],"summary":"Delete company.","description":"Use this endpoint to delete company.\n\nRequired roles: Admin.","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"},"401":{"description":"Authentication is required."},"403":{"description":"The user is not authorized to access this endpoint."}}}}}}
```

## Cancels a previously scheduled company deletion.

> Resets ScheduledDeletionDate for the selected company when the authenticated user has access. This is typically used after a delayed deletion was scheduled from the delete flow.\
> \
> Required roles: Admin.

```json
{"openapi":"3.0.1","info":{"title":"WebApi | v1","version":"1.0.0"},"tags":[{"name":"Company"}],"servers":[{"url":"https://api.safegpt.nl/"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"JWT bearer token. Example: 'Bearer {token}'.","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/v1/Company/CancelDelete/{companyId}":{"get":{"tags":["Company"],"summary":"Cancels a previously scheduled company deletion.","description":"Resets ScheduledDeletionDate for the selected company when the authenticated user has access. This is typically used after a delayed deletion was scheduled from the delete flow.\n\nRequired roles: Admin.","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"},"401":{"description":"Authentication is required."},"403":{"description":"The user is not authorized to access this endpoint."}}}}}}
```

## Retrieves aggregated company usage history for analytics.

> Returns usage entries for the selected company over the requested period. When no date range is provided, the endpoint defaults to the last year.\
> \
> Required roles: Admin.

```json
{"openapi":"3.0.1","info":{"title":"WebApi | v1","version":"1.0.0"},"tags":[{"name":"Company"}],"servers":[{"url":"https://api.safegpt.nl/"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"JWT bearer token. Example: 'Bearer {token}'.","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/v1/Company/Usage/{companyId}":{"get":{"tags":["Company"],"summary":"Retrieves aggregated company usage history for analytics.","description":"Returns usage entries for the selected company over the requested period. When no date range is provided, the endpoint defaults to the last year.\n\nRequired roles: Admin.","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"frequency","in":"query","schema":{"type":"string","default":null}},{"name":"from","in":"query","schema":{"type":"string","format":"date-time","default":null}},{"name":"to","in":"query","schema":{"type":"string","format":"date-time","default":null}}],"responses":{"200":{"description":"OK"},"401":{"description":"Authentication is required."},"403":{"description":"The user is not authorized to access this endpoint."}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.safegpt.nl/api-nl/endpoints/company.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
