---
agentTools:
  projectIndex: https://troops.readme.io/llms.txt
---

# Create new job description

Create new job description

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Introduction",
    "version": "1.0.0",
    "description": "The Troops Integration API is organized around\n[REST](https://en.wikipedia.org/wiki/Representational_state_transfer). It\nallows you to query and manipulate the following resources within your TEA\ntree:\n\n- Candidates and their related assets.\n- TEAs\n- Certain references:\n  - Business sectors\n  - Countries\n  - Jobs\n- Paychecks\n- Evolia syncing\n"
  },
  "paths": {
    "/api/v1/integrations/job-descriptions": {
      "post": {
        "tags": [
          "Job descriptions"
        ],
        "description": "Create new job description",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "example": "Test Job Description"
                  },
                  "agency": {
                    "$ref": "#/components/schemas/UUID"
                  },
                  "client": {
                    "type": "string",
                    "example": "erp:12345/0",
                    "description": "Flexible reference identifier"
                  },
                  "job": {
                    "type": "string",
                    "example": "title:House maker",
                    "description": "Flexible reference identifier"
                  },
                  "experience_state": {
                    "$ref": "#/components/schemas/UUID"
                  },
                  "hourly_rate": {
                    "type": "number",
                    "format": "float",
                    "example": 20.2
                  },
                  "management_coefficient": {
                    "type": "number",
                    "format": "float",
                    "example": 20.2
                  },
                  "delegation_coefficient": {
                    "type": "number",
                    "format": "float",
                    "example": 20.2
                  },
                  "is_medical_screening": {
                    "type": "boolean"
                  },
                  "is_risky": {
                    "type": "boolean"
                  },
                  "tasks": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "example": "Simple Func."
                    }
                  },
                  "worker_range": {
                    "type": "string",
                    "example": "low"
                  },
                  "union_coefficient": {
                    "type": "string",
                    "example": "180"
                  },
                  "painfulness": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/UUID"
                    }
                  },
                  "risks": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/UUID"
                    }
                  },
                  "bookkeeping_variable": {
                    "nullable": true,
                    "type": "string",
                    "format": "uuid",
                    "example": "26d6cf34-8988-462c-867d-fa8ac72d428e",
                    "description": "id from our vocabulary list of evolia bookkeeping variables"
                  },
                  "indicative_ending_hours": {
                    "type": "boolean",
                    "default": false
                  },
                  "shift_work_details": {
                    "nullable": true,
                    "type": "string",
                    "example": "Shift Work Details"
                  },
                  "multicast_description": {
                    "type": "string",
                    "example": "Sample description for multicast"
                  },
                  "schedules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "weekdays",
                          "description": "[ENUM](#/v2_common_schedule_types/get_api_v2_common_schedules_types) from schedule type\n"
                        },
                        "starting_at": {
                          "type": "string",
                          "example": 1072
                        },
                        "ending_at": {
                          "type": "string",
                          "example": 1132
                        },
                        "break_time": {
                          "type": "integer",
                          "example": 3600,
                          "description": "Break Time In Seconds",
                          "default": 0
                        }
                      },
                      "required": [
                        "starting_at",
                        "ending_at",
                        "type"
                      ]
                    }
                  },
                  "prerequisite": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "necessity": {
                          "$ref": "#/components/schemas/UUID"
                        },
                        "prerequisite": {
                          "$ref": "#/components/schemas/UUID"
                        }
                      },
                      "required": [
                        "necessity",
                        "prerequisite"
                      ]
                    }
                  },
                  "payroll_elements": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "management_coefficient": {
                          "type": "number",
                          "format": "float",
                          "example": 20.2,
                          "nullable": true
                        },
                        "delegation_coefficient": {
                          "type": "number",
                          "format": "float",
                          "example": 20.2,
                          "nullable": true
                        },
                        "type": {
                          "$ref": "#/components/schemas/UUID"
                        },
                        "label": {
                          "type": "string",
                          "example": "Des heures de souffrance",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "candidate_visible": {
                          "type": "boolean"
                        },
                        "frequency": {
                          "type": "string",
                          "nullable": true,
                          "example": "manual",
                          "default": "manual",
                          "enum": [
                            "manual",
                            "everyday",
                            "once_a_week"
                          ]
                        },
                        "values": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "variable": {
                                "type": "string",
                                "format": "uuid",
                                "description": "UUID",
                                "example": "7908b367-5363-4321-95f8-40d84893e295"
                              },
                              "value": {
                                "type": "string",
                                "example": "10"
                              }
                            },
                            "required": [
                              "variable",
                              "value"
                            ]
                          }
                        },
                        "in_employment_contract": {
                          "type": "boolean"
                        },
                        "in_business_contract": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "type",
                        "label",
                        "candidate_visible",
                        "frequency",
                        "in_employment_contract",
                        "in_business_contract"
                      ]
                    }
                  }
                },
                "required": [
                  "client",
                  "title",
                  "job",
                  "hourly_rate",
                  "management_coefficient",
                  "delegation_coefficient",
                  "tasks",
                  "is_medical_screening",
                  "is_risky"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returned in case request was successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceId"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "summary": "Create new job description"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "The entire API is authenticated, so to use it you will require an API\nkey. To acquire one, please send a request to your account manager at\nTroops or to help@troops.fr.\n\nWhen making requests, you need to specify the API key using the Bearer\nscheme in the Authorization header, e.g. `Authorization: Bearer\nthis-is-my-secret-token`.\n\nYour API keys carry many privileges, so be sure to keep them secure! Do\nnot share your secret API keys in publicly accessible areas such as\nGitHub, client-side code, and so forth.\n\nAll API requests must be made over HTTPS. Calls made over plain HTTP\nwill fail. API requests without authentication will also fail.\n"
      }
    },
    "schemas": {
      "UUID": {
        "type": "string",
        "format": "uuid",
        "description": "UUID",
        "example": "123e4567-e89b-12d3-a456-426655440000"
      },
      "ResourceId": {
        "type": "object",
        "description": "Resource Identifier. One of properties \"id\" or \"uuid\" might be null.",
        "properties": {
          "uuid": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UUID"
              },
              {
                "type": "string",
                "nullable": true,
                "example": null
              }
            ]
          },
          "id": {
            "anyOf": [
              {
                "type": "integer",
                "example": 2
              },
              {
                "type": "integer",
                "nullable": true,
                "example": null
              },
              {
                "$ref": "#/components/schemas/UUID"
              },
              {
                "type": "string",
                "nullable": true,
                "example": null
              }
            ]
          }
        },
        "example": {
          "id": null,
          "uuid": "123e4567-e89b-12d3-a456-426655440000"
        }
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Returned in case authentication is lacking, invalid or expired"
      },
      "BadRequest": {
        "description": "Returned in case the request contained invalid parameters"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api-staging.troops.fr",
      "description": "PreProduction (Staging) server"
    },
    {
      "url": "https://api.troops.fr",
      "description": "Production server"
    },
    {
      "url": "https://api-dev.troops.online",
      "description": "Development server"
    },
    {
      "url": "https://api-{envID}.troops.online",
      "description": "Development server (Dynamic feature env)",
      "variables": {
        "envID": {
          "default": "dev",
          "description": "dev, r-********, 1202004111967626"
        }
      }
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 184,
      "2": 241,
      "3": 90,
      "4": 97,
      "5": 249,
      "6": 184,
      "7": 0,
      "8": 76,
      "9": 125,
      "10": 22,
      "11": 209
    }
  }
}
```