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

# Assign or change the project mappings (e.g. budget) for a project



## OpenAPI

````yaml /openapi.yaml patch /projects/{id}/project_mappings
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /projects/{id}/project_mappings:
    patch:
      tags:
        - Project
      summary: Assign or change the project mappings (e.g. budget) for a project
      operationId: projects#update_project_mappings
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyProjectProjectMappings'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/project'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    requestBodyProjectProjectMappings:
      type: object
      description: >-
        One `<type>_project_mapping_id` per mapping type to change; at least one
        is required.
      properties:
        standard_fields_project_mapping_id:
          type: integer
    project:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        code:
          type: string
          nullable: true
        logo_url:
          type: string
          nullable: true
        currency:
          type: string
          nullable: true
          description: >-
            3-letter ISO 4217 code labelling the project's money values
            (currency-format columns); null = no currency.
          example: USD
        position:
          type: integer
        status:
          type: string
          enum:
            - active
            - archived
            - creating
        created_at:
          type: string
          format: date-time
        deleted_at:
          type: string
          format: date-time
          nullable: true
        standard_fields_project_mapping:
          type: object
          description: >-
            The assigned budget project mapping's id and name. Returned by
            show/create/update (Projects::Serializer), not by the index
            (Projects::ListSerializer).
          properties:
            id:
              type: integer
            name:
              type: string
          required:
            - id
            - name
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.