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

# Set Task Value

> Records an task with a specific value for a user within a campaign quest. Validates user login, campaign bundle, and quest group before executing the task.



## OpenAPI

````yaml /openapi.yaml post /action/value
openapi: 3.0.0
info:
  title: claimr API
  version: 1.0.0
  description: >-
    Advanced features of claimr for business partners. This API provides a
    seamless integration with claimr services
  termsOfService: https://claimr.io/terms-of-service/
  contact:
    name: claimr support team
    email: support@claimr.io
servers:
  - url: https://prod.claimr.io/api/v1
    description: Production server
  - url: https://prod.claimr.io/api/v1
    description: Development server
security: []
tags: []
paths:
  /action/value:
    post:
      tags:
        - Tasks
      summary: Set Task Value
      description: >-
        Records an task with a specific value for a user within a campaign
        quest. Validates user login, campaign bundle, and quest group before
        executing the task.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account
                - platform
                - pid
                - cid
                - aid
                - value
              properties:
                account:
                  type: string
                  description: User account identifier
                  example: user123
                platform:
                  type: string
                  description: Platform identifier where the user account exists
                  example: steam
                pid:
                  type: string
                  description: Campaign ID
                  example: campaign_abc123
                cid:
                  type: string
                  description: Quest ID within the campaign
                  example: quest_xyz789
                aid:
                  type: string
                  description: Task ID to be performed
                  example: score_update
                value:
                  type: number
                  description: Numeric value associated with the task
                  example: 150
      responses:
        '200':
          description: Task value set successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        format: int32
                        default: 400
                      message:
                        type: string
                        default: bad request
              examples:
                missing_fields:
                  summary: Missing required fields
                  value:
                    error: >-
                      Missing required parameters: aid, cid, pid, account, or
                      platform
                login_not_found:
                  summary: User login not found
                  value:
                    error: >-
                      User login not found for the specified account and
                      platform
                campaign_not_found:
                  summary: Campaign bundle not found
                  value:
                    error: >-
                      Campaign bundle not found for the specified organization
                      and campaign ID
                quest_group_not_found:
                  summary: Quest group not found
                  value:
                    error: Quest group not found for the specified quest ID
        '401':
          $ref: '#/components/responses/unauthorized'
        '403':
          $ref: '#/components/responses/access_denied'
        '500':
          $ref: '#/components/responses/internal_error'
      security:
        - bearer: []
components:
  responses:
    unauthorized:
      description: Unauthorized request
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              error:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                    default: 401
                  message:
                    type: string
                    default: unauthorized
    access_denied:
      description: Access denied
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              error:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                    default: 403
                  message:
                    type: string
                    default: access denied
    internal_error:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              error:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                    default: 500
                  message:
                    type: string
                    default: internal error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````