Contractors

recruiting.postings.save

Create a job posting (often from a job role with jobRoleId), or update one with id and expectedRevision: title, department, location, workplace (remote, hybrid, onsite), employmentType, description, payText, vacancyExists, aiAssist (disclosed on the posting), visibility (public or private), questions (key, label, type text/textarea/yes_no/select/url, required, options) and stages (Applied first, Hired last). The creator becomes hiring manager unless an administrator chooses someone; only an administrator or the current hiring manager can change it. New postings start as drafts.

POST/api/v1/accounting/recruiting.postings.save

Permissions

accounting:readaccounting:write

Who can call it

admin, finance

Retries

Idempotency key required, with expectedRevision

MCP

accounting_recruiting_postings_save

Fields

  • idstring (ID)

    The record's ID.

  • expectedRevisioninteger

    The record's current revision, from the last time you read it. If someone changed the record since, the request is refused with a conflict so you can reload and check before trying again.

    at most 9007199254740991 · greater than 0

  • postingobjectRequired

    No other fields

  • idempotencyKeystringRequired

    Any unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match.

    8–200 characters

Example

curl https://app.getoatmilk.com/api/v1/accounting/recruiting.postings.save \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "posting": {
    "jobRoleId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
    "title": "Synthetic services agreement",
    "department": "example",
    "location": "example",
    "workplace": "remote",
    "employmentType": "contractor",
    "description": "Synthetic example from the docs",
    "payText": "example",
    "vacancyExists": true,
    "aiAssist": true,
    "visibility": "public",
    "questions": [
      {
        "key": "key",
        "label": "example",
        "type": "text",
        "required": true
      }
    ],
    "stages": [
      {
        "id": "id",
        "label": "example"
      },
      {
        "id": "id",
        "label": "example"
      }
    ],
    "hiringManagerUserId": "example"
  }
}'
Response
{
  "data": { … }
}

This action checks your data too, so replace the example values with your own before sending it.

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

POST/api/v1/accounting/recruiting.postings.save
curl https://app.getoatmilk.com/api/v1/accounting/recruiting.postings.save \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "posting": {
    "jobRoleId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
    "title": "Synthetic services agreement",
    "department": "example",
    "location": "example",
    "workplace": "remote",
    "employmentType": "contractor",
    "description": "Synthetic example from the docs",
    "payText": "example",
    "vacancyExists": true,
    "aiAssist": true,
    "visibility": "public",
    "questions": [
      {
        "key": "key",
        "label": "example",
        "type": "text",
        "required": true
      }
    ],
    "stages": [
      {
        "id": "id",
        "label": "example"
      },
      {
        "id": "id",
        "label": "example"
      }
    ],
    "hiringManagerUserId": "example"
  }
}'

More in Contractors.