---
updatedAt: 2025-06-05T01:14:01.000Z
agentTools:
  projectIndex: https://developers.7shifts.com/v2.2023.0501/llms.txt
---

# edit task list template

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "7shifts API",
    "contact": {
      "email": "api-support@7shifts.com"
    },
    "version": "2023-05-01"
  },
  "servers": [
    {
      "url": "https://api.7shifts.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/v2/company/{company_id}/task_list_templates/{uuid}": {
      "put": {
        "tags": [
          "Task Management"
        ],
        "summary": "edit task list template",
        "operationId": "editTaskListTemplate",
        "parameters": [
          {
            "name": "x-api-version",
            "in": "header",
            "description": "7shifts API version",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "An API version",
              "example": "2022-05-01"
            }
          },
          {
            "name": "x-company-guid",
            "in": "header",
            "description": "Company GUID",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "1310bfe1-cb3f-4f24-98a2-fde2bc504108"
          },
          {
            "name": "company_id",
            "in": "path",
            "description": "Company ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 8655
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "Task List Template UUID",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "8cff3c09-e328-4425-bea5-20151ddc805a"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string",
                    "nullable": true
                  },
                  "status": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "task_templates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "uuid": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string",
                          "nullable": true
                        },
                        "sort": {
                          "type": "integer"
                        },
                        "task_completion": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "NUMBER",
                                "TEMPERATURE",
                                "PHOTO",
                                "STRING",
                                "WEIGHT",
                                "CHECKMARK"
                              ],
                              "nullable": true
                            },
                            "unit": {
                              "type": "string",
                              "enum": [
                                "C",
                                "F",
                                "KG"
                              ],
                              "nullable": true
                            }
                          },
                          "nullable": true
                        }
                      },
                      "required": [
                        "title",
                        "description"
                      ]
                    }
                  },
                  "recurrence": {
                    "type": "string",
                    "description": "recurrence rules as defined by the RFC 5545 spec",
                    "example": "RRULE:FREQ=WEEKLY;INTERVAL=1;WKST=MO"
                  },
                  "assignments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "location_id": {
                          "type": "integer"
                        },
                        "department_id": {
                          "type": "integer",
                          "nullable": true
                        },
                        "role_id": {
                          "type": "integer",
                          "nullable": true
                        },
                        "user_id": {
                          "type": "integer",
                          "nullable": true
                        }
                      },
                      "required": [
                        "location_id"
                      ]
                    }
                  },
                  "due": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                        "description": "A date with YYYY-MM-DD format",
                        "example": "2020-01-01"
                      }
                    ],
                    "nullable": true
                  },
                  "time_frame": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "start": {
                            "description": "The time when this task starts",
                            "type": "string",
                            "nullable": true,
                            "pattern": "^\\d{2}:\\d{2}:\\d{2}$",
                            "example": "09:00:00"
                          },
                          "end": {
                            "description": "The time when this task ends",
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}:\\d{2}$",
                            "example": "23:59:59"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      }
                    ],
                    "nullable": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The task list template",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "task_list_template"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer"
                        },
                        "company_id": {
                          "type": "integer"
                        },
                        "uuid": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string",
                          "nullable": true
                        },
                        "status": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "due": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                              "description": "A date with YYYY-MM-DD format",
                              "example": "2020-01-01"
                            }
                          ],
                          "nullable": true
                        },
                        "created": {
                          "type": "string",
                          "nullable": true,
                          "format": "date-time"
                        },
                        "activated_at": {
                          "type": "string",
                          "nullable": true,
                          "format": "date-time"
                        },
                        "task_templates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "uuid": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string",
                                "nullable": true
                              },
                              "sort": {
                                "type": "integer"
                              },
                              "created": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "task_completion": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "NUMBER",
                                          "TEMPERATURE",
                                          "PHOTO",
                                          "STRING",
                                          "WEIGHT",
                                          "CHECKMARK"
                                        ]
                                      },
                                      "primitive_type": {
                                        "type": "string",
                                        "enum": [
                                          "INTEGER",
                                          "DECIMAL",
                                          "FILE",
                                          "STRING",
                                          "BOOLEAN"
                                        ]
                                      },
                                      "unit": {
                                        "type": "string",
                                        "enum": [
                                          "C",
                                          "F",
                                          "KG"
                                        ],
                                        "nullable": true
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "primitive_type",
                                      "unit"
                                    ]
                                  }
                                ],
                                "nullable": true
                              }
                            },
                            "required": [
                              "title",
                              "description",
                              "sort"
                            ]
                          }
                        },
                        "assignments": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "location_id": {
                                "type": "integer"
                              },
                              "department_id": {
                                "type": "integer",
                                "nullable": true
                              },
                              "role_id": {
                                "type": "integer",
                                "nullable": true
                              },
                              "user_id": {
                                "type": "integer",
                                "nullable": true
                              }
                            },
                            "required": [
                              "location_id"
                            ]
                          }
                        },
                        "recurrence": {
                          "type": "string",
                          "description": "recurrence rules as defined by the RFC 5545 spec",
                          "example": "RRULE:FREQ=WEEKLY;INTERVAL=1;WKST=MO"
                        },
                        "time_frame": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "description": "The time when this task starts",
                                  "type": "string",
                                  "nullable": true,
                                  "pattern": "^\\d{2}:\\d{2}:\\d{2}$",
                                  "example": "09:00:00"
                                },
                                "end": {
                                  "description": "The time when this task ends",
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}:\\d{2}$",
                                  "example": "23:59:59"
                                }
                              },
                              "required": [
                                "start",
                                "end"
                              ]
                            }
                          ],
                          "nullable": true
                        }
                      },
                      "required": [
                        "id",
                        "company_id",
                        "uuid",
                        "title",
                        "description",
                        "status",
                        "created",
                        "activated_at",
                        "task_templates",
                        "assignments",
                        "recurrence"
                      ]
                    }
                  },
                  "required": [
                    "object",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          },
          "password": {
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          },
          "authorizationCode": {
            "authorizationUrl": "https://app.7shifts.com/oauth2/authorize",
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          }
        }
      },
      "cookieAuth": {
        "type": "apiKey",
        "in": "cookie",
        "name": "7session"
      }
    }
  },
  "security": [
    {
      "OAuth2": []
    },
    {
      "cookieAuth": []
    }
  ],
  "tags": [
    {
      "name": "Task Management"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```