> ## Documentation Index
> Fetch the complete documentation index at: https://docs.repdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set project color

> # Description

Changes the color of the project card on the projects list dashboard  using the projectId set on the url.

# Payload

```json
"string"
```

where:

The body is only a string with the hex color without the `#` character.

# Response

## 200 OK

```json
{
  "projectId": "string",
  "color": "string"
}
```

where:

- `projectId`: Project identifier.
- `color`: Color set without `#`.

## 400 Bad Request

> Value is not a string.

## 401 Unauthorized

> The user doesn't have permissions.

## 500 Internal Server Error

> Error occurred while processing the request.

# Description

Changes the color of the project card on the projects list dashboard  using the projectId set on the url.

# Payload

```json theme={null}
"string"
```

where:

The body is only a string with the hex color without the `#` character.

# Response

## 200 OK

```json theme={null}
{
  "projectId": "string",
  "color": "string"
}
```

where:

* `projectId`: Project identifier.
* `color`: Color set without `#`.

## 400 Bad Request

> Value is not a string.

## 401 Unauthorized

> The user doesn't have permissions.

## 500 Internal Server Error

> Error occurred while processing the request.


## OpenAPI

````yaml POST /projects-api/v1/projects/{projectId}/changeColor
openapi: 3.0.3
info:
  title: SightX API
  version: 1.0.0
  description: >-
    SightX REST API documentation. Most responses are JSON; some export
    endpoints return files. API access is a paid add-on — contact
    sales@sightx.io for details.
servers:
  - url: https://auth.admin.sightx.io
    description: Authentication (Production)
  - url: https://auth.staging-admin.sightx.io
    description: Authentication (Staging)
security:
  - AuthorizationHeader: []
paths:
  /projects-api/v1/projects/{projectId}/changeColor:
    post:
      summary: Set project color
      description: >-
        # Description


        Changes the color of the project card on the projects list dashboard 
        using the projectId set on the url.


        # Payload


        ```json

        "string"

        ```


        where:


        The body is only a string with the hex color without the `#` character.


        # Response


        ## 200 OK


        ```json

        {
          "projectId": "string",
          "color": "string"
        }

        ```


        where:


        - `projectId`: Project identifier.

        - `color`: Color set without `#`.


        ## 400 Bad Request


        > Value is not a string.


        ## 401 Unauthorized


        > The user doesn't have permissions.


        ## 500 Internal Server Error


        > Error occurred while processing the request.
      operationId: set-project-color-post-projects-api-v1-projects-projectid-changecolor
      parameters:
        - name: Authorization
          in: header
          required: true
          description: Authorization token
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
            example: 34C759
      responses:
        '200':
          description: Set project color
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                projectId: 60820257e8002f000f13d551
                color: 34C759
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '500':
          description: Internal server error
      servers:
        - url: https://project.sightx.io
components:
  securitySchemes:
    AuthorizationHeader:
      type: apiKey
      in: header
      name: Authorization
      description: Access token obtained from the m2m-token endpoint.

````