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

# Set an artifact password

> Set the password protecting an artifact. Passwords must be 6–256 characters.



## OpenAPI

````yaml put /artifacts/{artifact_id}/password
openapi: 3.0.0
info:
  title: Public API
  version: 1.0.0
servers:
  - url: https://api.gumloop.com/api/v1
security: []
paths:
  /artifacts/{artifact_id}/password:
    put:
      tags:
        - Artifacts
      summary: Set an artifact password
      description: >-
        Set the password protecting an artifact. Passwords must be 6–256
        characters.
      operationId: updateArtifactPassword
      parameters:
        - name: artifact_id
          in: path
          required: true
          schema:
            type: string
        - name: team_id
          in: query
          required: false
          schema:
            type: string
          description: Team scope when using a team API key.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - password
              properties:
                password:
                  type: string
                  minLength: 6
                  maxLength: 256
                team_id:
                  type: string
                  nullable: true
      responses:
        '200':
          description: Password set.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                properties:
                  success:
                    type: boolean
                    example: true
        '400':
          description: Invalid password or request.
        '401':
          description: Unauthorized — missing or invalid credentials.
        '403':
          description: Forbidden — the caller cannot manage access settings.
        '404':
          description: Artifact not found.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A personal API key or an [OAuth 2.0](/api-reference/oauth) access token.
        Personal API keys also require the `x-auth-key` header with your user
        ID.

````