---
title: "Create profile"
method: POST
path: "/profiles"
tags: ["profiles"]
---

# Create profile

`POST /profiles`

Create a new profile.

## Request body

- object — A named set of read/write privileges.
  - `name` string, required — The name of the profile.
  - `aspectAccess` 'r' | 'rw' — The permission to read and/or write aspects.
  - `botAccess` 'r' | 'rw' — The permission to read and/or write bots.
  - `eventAccess` 'r' | 'rw' — The permission to read and/or write events.
  - `lensAccess` 'r' | 'rw' — The permission to read and/or write lenses.
  - `perspectiveAccess` 'r' | 'rw' — The permission to read and/or write perspectives.
  - `profileAccess` 'r' | 'rw' — The permission to read and/or write profiles.
  - `roomAccess` 'r' | 'rw' — The permission to read and/or write rooms.
  - `roomTypeAccess` 'r' | 'rw' — The permission to read and/or write roomTypes.
  - `sampleAccess` 'r' | 'rw' — The permission to read and/or write samples.
  - `subjectAccess` 'r' | 'rw' — The permission to read and/or write subjects.
  - `userAccess` 'r' | 'rw' — The permission to read and/or write users.

## Response `201`

Created.

- ProfilesResponse — A named set of read/write privileges.
  - `id` string
  - `name` string — The name of the profile.
  - `aspectAccess` 'r' | 'rw' — The permission to read and/or write aspects.
  - `botAccess` 'r' | 'rw' — The permission to read and/or write bots.
  - `eventAccess` 'r' | 'rw' — The permission to read and/or write events.
  - `lensAccess` 'r' | 'rw' — The permission to read and/or write lenses.
  - `perspectiveAccess` 'r' | 'rw' — The permission to read and/or write perspectives.
  - `profileAccess` 'r' | 'rw' — The permission to read and/or write profiles.
  - `roomAccess` 'r' | 'rw' — The permission to read and/or write rooms.
  - `roomTypeAccess` 'r' | 'rw' — The permission to read and/or write roomTypes.
  - `sampleAccess` 'r' | 'rw' — The permission to read and/or write samples.
  - `subjectAccess` 'r' | 'rw' — The permission to read and/or write subjects.
  - `userAccess` 'r' | 'rw' — The permission to read and/or write users.
  - `users` UsersResponse[]
    - `email` string — The user's email address.
    - `id` string
    - `imageUrl` string — Optional thumbnail image.
    - `name` string — First and last name.
    - `fullName` string — The user's full name.
    - `password` string
    - `createdBy` string — TODO
    - `createdAt` string — TODO
    - `updatedAt` string — TODO
    - `apiLinks` HATEOAS[] — Hypertext As The Engine Of Application State.
      - `href` string, required — URL of the related HATEOAS link you can use for subsequent calls.
      - `rel` string, required — Link relation that describes how this link relates to the previous call.
      - `method` string, required — The HTTP method required for the related call.
  - `createdBy` string — TODO
  - `createdAt` string — TODO
  - `updatedAt` string — TODO
  - `apiLinks` HATEOAS[] — Hypertext As The Engine Of Application State.
    - `href` string, required — URL of the related HATEOAS link you can use for subsequent calls.
    - `rel` string, required — Link relation that describes how this link relates to the previous call.
    - `method` string, required — The HTTP method required for the related call.

## Other responses

- `400` — Bad Request
- `401` — Authentication Error
- `403` — Forbidden
- `default` — Error

---

[API](https://skmtc.dev/salesforce/apis/refocus-api.md) · [All operations](https://skmtc.dev/salesforce/apis/refocus-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/salesforce/refocus-api/revisions/42c2153b047e/schema)
