---
updatedAt: 2026-05-28T15:48:11.000Z
agentTools:
  projectIndex: https://dev.frontapp.com/llms.txt
---

# Create shift

Create a shift in the oldest active workspace that the token has access to. If you need to specify the workspace, we recommend using the [Create team shift](https://dev.frontapp.com/reference/create-team-shift) endpoint instead.

Required scope: `shifts:write`

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-api-id": "front",
  "x-explorer-enabled": false,
  "x-proxy-enabled": true,
  "x-samples-enabled": true,
  "info": {
    "version": "1.0.0",
    "title": "Core API",
    "contact": {
      "name": "Front Platform",
      "url": "https://community.front.com"
    }
  },
  "security": [
    {
      "http": []
    }
  ],
  "servers": [
    {
      "url": "https://api2.frontapp.com"
    }
  ],
  "components": {
    "schemas": {
      "CreateShift": {
        "required": [
          "name",
          "color",
          "timezone",
          "times",
          "teammate_ids"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the shift"
          },
          "color": {
            "type": "string",
            "enum": [
              "black",
              "grey",
              "pink",
              "purple",
              "blue",
              "teal",
              "green",
              "yellow",
              "orange",
              "red"
            ],
            "description": "Color of the shift"
          },
          "timezone": {
            "type": "string",
            "description": "A timezone name as defined in the IANA tz database"
          },
          "times": {
            "description": "The shift intervals per day of the week",
            "$ref": "#/components/schemas/ShiftIntervals"
          },
          "teammate_ids": {
            "type": "array",
            "description": "List of all the teammate ids who will be part of this shift. Alternatively, you can supply emails as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1).",
            "items": {
              "$ref": "#/components/schemas/ResourceID"
            }
          }
        }
      },
      "ResourceID": {
        "type": "string"
      },
      "ShiftInterval": {
        "type": "object",
        "required": [
          "start",
          "end"
        ],
        "properties": {
          "start": {
            "type": "string",
            "description": "Start of shift",
            "example": "09:00"
          },
          "end": {
            "type": "string",
            "description": "End of shift",
            "example": "17:00"
          }
        }
      },
      "ShiftIntervals": {
        "type": "object",
        "properties": {
          "mon": {
            "$ref": "#/components/schemas/ShiftInterval"
          },
          "tue": {
            "$ref": "#/components/schemas/ShiftInterval"
          },
          "wed": {
            "$ref": "#/components/schemas/ShiftInterval"
          },
          "thu": {
            "$ref": "#/components/schemas/ShiftInterval"
          },
          "fri": {
            "$ref": "#/components/schemas/ShiftInterval"
          },
          "sat": {
            "$ref": "#/components/schemas/ShiftInterval"
          },
          "sun": {
            "$ref": "#/components/schemas/ShiftInterval"
          }
        }
      },
      "ShiftResponse": {
        "type": "object",
        "required": [
          "_links",
          "id",
          "name",
          "color",
          "timezone",
          "times"
        ],
        "properties": {
          "_links": {
            "type": "object",
            "properties": {
              "self": {
                "type": "string",
                "description": "Link to resource",
                "example": "https://yourCompany.api.frontapp.com/shifts/shf_1bri"
              },
              "related": {
                "type": "object",
                "properties": {
                  "teammates": {
                    "type": "string",
                    "description": "Link to shift teammates",
                    "example": "https://yourCompany.api.frontapp.com/shifts/shf_1bri/teammates"
                  },
                  "owner": {
                    "type": "string",
                    "description": "Link to shift owner",
                    "example": "https://yourCompany.api.frontapp.com/teams/tim_4kxji"
                  }
                }
              }
            }
          },
          "id": {
            "type": "string",
            "description": "Unique identifier of the shift",
            "example": "shf_1bri"
          },
          "name": {
            "type": "string",
            "description": "Name of the shift",
            "example": "Scranton Business Park shifts"
          },
          "color": {
            "type": "string",
            "enum": [
              "black",
              "grey",
              "pink",
              "purple",
              "blue",
              "teal",
              "green",
              "yellow",
              "orange",
              "red"
            ],
            "description": "Color of the shift",
            "example": "green"
          },
          "timezone": {
            "type": "string",
            "description": "A timezone name as defined in the IANA tz database",
            "example": "America/New_York"
          },
          "times": {
            "description": "The shift intervals per day of the week",
            "$ref": "#/components/schemas/ShiftIntervals"
          },
          "created_at": {
            "type": "number",
            "description": "The timestamp when the shift was created.",
            "example": 1606943265.298
          },
          "updated_at": {
            "type": "number",
            "description": "The timestamp when the shift was updated.",
            "example": 1701878404.43
          }
        }
      }
    },
    "securitySchemes": {
      "http": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "shift": {
        "description": "A shift",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ShiftResponse"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/shifts": {
      "post": {
        "summary": "Create shift",
        "operationId": "create-shift",
        "description": "Create a shift in the oldest active workspace that the token has access to. If you need to specify the workspace, we recommend using the [Create team shift](https://dev.frontapp.com/reference/create-team-shift) endpoint instead.\n\nRequired scope: `shifts:write`",
        "tags": [
          "Shifts"
        ],
        "requestBody": {
          "required": true,
          "description": "Shift to create details",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateShift"
              }
            }
          }
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/shift"
          }
        },
        "x-required-scopes": [
          "shifts:write"
        ]
      }
    }
  }
}
```