Recurring tasks

POST /plugins/RecurringTasks #

Create a recurring task

Creates a recurring task for the supplied project. By default the task is personal and belongs to the authenticated user; set scope to project to create a task shared with the project. The request uses a flat payload, while the response returns the saved task with its issue template and normalized schedule nested under template and schedule.

Responses

  • 200 Task created; the response contains its new numeric ID.
    id integer required Created or updated recurring task ID.
    {
        "id": 1
    }
  • 400 Invalid ID, payload, frequency, or schedule field.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or the supplied token is invalid.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user cannot view, create, update, delete, or trigger this task.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The task or project does not exist.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X POST \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/RecurringTasks \
  -d '"string"'
Request body · application/json
"string"
GET /plugins/RecurringTasks/projects/{project_id}/tasks #

List tasks for a project (named route)

Same operation as /{project_id}/tasks; this named path is retained as a compatibility alias.

Parameters

Name In Type Description
project_id required path integer · int32 Numeric project ID, or `0` (`ALL_PROJECTS`) to list tasks across accessible projects.
page query integer One-based page number. Values below 1 are treated as 1.
per_page query integer Number of tasks per page; the implementation clamps this to 1–100.

Responses

  • 200 Visible project tasks and pagination metadata.
    tasks object[] required
    id integer required Recurring task ID.
    name string required Display name.
    owner_id integer required User who owns the task.
    scope integer required 0 for personal, 1 for project scope. 0 1
    project_id integer required Associated project ID.
    reporter_id integer required Reporter ID used when creating issues.
    reporter object Reporter account reference when populated by the surrounding API layer.
    enabled integer required Whether the task can execute; responses serialize this database flag as 0 or 1. 0 1
    template object required
    project object required
    id integer required MantisBT object ID.
    handler object required
    id integer required MantisBT object ID.
    summary string required Issue summary template.
    description string required Issue description template.
    view_state object required
    id integer required MantisBT object ID.
    category object required
    id integer required MantisBT object ID.
    custom_fields object[]
    field string required
    value string required Value stored for the custom field; MantisBT accepts scalar field values.
    schedule object required
    frequency string required Schedule frequency. manual daily weekly monthly annually
    hour integer Local execution hour for non-manual schedules.
    interval integer Frequency interval when applicable.
    dow integer Weekly day, where 0 is Sunday.
    day integer Monthly or annual day.
    month integer Annual month.
    occurrence integer required Maximum successful executions; 0 means unlimited.
    counter integer required Number of executions recorded.
    created_at string required Creation timestamp as returned by MantisBT.
    updated_at string required Last update timestamp as returned by MantisBT.
    formatted_schedule string Optional human-readable schedule supplied by presentation code.
    last_executed string Optional last execution timestamp.
    last_result string Optional last execution result.
    pagination object required
    page integer required
    per_page integer required
    total integer required
    total_pages integer required
    has_prev boolean required
    has_next boolean required
    {
        "tasks": [
            {
                "id": 1,
                "name": "string",
                "owner_id": 1,
                "scope": 0,
                "project_id": 1,
                "reporter_id": 1,
                "reporter": [],
                "enabled": 0,
                "template": {
                    "project": {
                        "id": 1
                    },
                    "handler": {
                        "id": 1
                    },
                    "summary": "string",
                    "description": "string",
                    "view_state": {
                        "id": 1
                    },
                    "category": {
                        "id": 1
                    },
                    "custom_fields": [
                        {
                            "field": "string",
                            "value": "string"
                        }
                    ]
                },
                "schedule": {
                    "frequency": "manual",
                    "hour": 1,
                    "interval": 1,
                    "dow": 1,
                    "day": 1,
                    "month": 1
                },
                "occurrence": 1,
                "counter": 1,
                "created_at": "string",
                "updated_at": "string",
                "formatted_schedule": "string",
                "last_executed": "string",
                "last_result": "string"
            }
        ],
        "pagination": {
            "page": 1,
            "per_page": 1,
            "total": 1,
            "total_pages": 1,
            "has_prev": true,
            "has_next": true
        }
    }
  • 400 Invalid ID, payload, frequency, or schedule field.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or the supplied token is invalid.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user cannot view, create, update, delete, or trigger this task.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The task or project does not exist.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/RecurringTasks/projects/1/tasks
POST /plugins/RecurringTasks/projects/{project_id}/tasks #

Create a project recurring task (named route)

Same operation as POST /{project_id}/tasks; this named path is retained as a compatibility alias.

Parameters

Name In Type Description
project_id required path integer · int32 Numeric ID of the project whose tasks are read or created.

Responses

  • 200 Task created; the response contains its new numeric ID.
    id integer required Created or updated recurring task ID.
    {
        "id": 1
    }
  • 400 Invalid ID, payload, frequency, or schedule field.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or the supplied token is invalid.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user cannot view, create, update, delete, or trigger this task.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The task or project does not exist.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X POST \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/RecurringTasks/projects/1/tasks \
  -d '"string"'
Request body · application/json
"string"
GET /plugins/RecurringTasks/tasks #

List the current user's personal tasks

Returns personal recurring tasks owned by the authenticated user. The endpoint always returns the pagination envelope used by this route: tasks contains the current page and pagination describes the clamped page and page size.

Parameters

Name In Type Description
page query integer One-based page number. Values below 1 are treated as 1.
per_page query integer Number of tasks per page; the implementation clamps this to 1–100.

Responses

  • 200 Personal tasks and pagination metadata.
    tasks object[] required
    id integer required Recurring task ID.
    name string required Display name.
    owner_id integer required User who owns the task.
    scope integer required 0 for personal, 1 for project scope. 0 1
    project_id integer required Associated project ID.
    reporter_id integer required Reporter ID used when creating issues.
    reporter object Reporter account reference when populated by the surrounding API layer.
    enabled integer required Whether the task can execute; responses serialize this database flag as 0 or 1. 0 1
    template object required
    project object required
    id integer required MantisBT object ID.
    handler object required
    id integer required MantisBT object ID.
    summary string required Issue summary template.
    description string required Issue description template.
    view_state object required
    id integer required MantisBT object ID.
    category object required
    id integer required MantisBT object ID.
    custom_fields object[]
    field string required
    value string required Value stored for the custom field; MantisBT accepts scalar field values.
    schedule object required
    frequency string required Schedule frequency. manual daily weekly monthly annually
    hour integer Local execution hour for non-manual schedules.
    interval integer Frequency interval when applicable.
    dow integer Weekly day, where 0 is Sunday.
    day integer Monthly or annual day.
    month integer Annual month.
    occurrence integer required Maximum successful executions; 0 means unlimited.
    counter integer required Number of executions recorded.
    created_at string required Creation timestamp as returned by MantisBT.
    updated_at string required Last update timestamp as returned by MantisBT.
    formatted_schedule string Optional human-readable schedule supplied by presentation code.
    last_executed string Optional last execution timestamp.
    last_result string Optional last execution result.
    pagination object required
    page integer required
    per_page integer required
    total integer required
    total_pages integer required
    has_prev boolean required
    has_next boolean required
    {
        "tasks": [
            {
                "id": 1,
                "name": "string",
                "owner_id": 1,
                "scope": 0,
                "project_id": 1,
                "reporter_id": 1,
                "reporter": [],
                "enabled": 0,
                "template": {
                    "project": {
                        "id": 1
                    },
                    "handler": {
                        "id": 1
                    },
                    "summary": "string",
                    "description": "string",
                    "view_state": {
                        "id": 1
                    },
                    "category": {
                        "id": 1
                    },
                    "custom_fields": [
                        {
                            "field": "string",
                            "value": "string"
                        }
                    ]
                },
                "schedule": {
                    "frequency": "manual",
                    "hour": 1,
                    "interval": 1,
                    "dow": 1,
                    "day": 1,
                    "month": 1
                },
                "occurrence": 1,
                "counter": 1,
                "created_at": "string",
                "updated_at": "string",
                "formatted_schedule": "string",
                "last_executed": "string",
                "last_result": "string"
            }
        ],
        "pagination": {
            "page": 1,
            "per_page": 1,
            "total": 1,
            "total_pages": 1,
            "has_prev": true,
            "has_next": true
        }
    }
  • 401 Authentication is required or the supplied token is invalid.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user cannot view, create, update, delete, or trigger this task.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/RecurringTasks/tasks
GET /plugins/RecurringTasks/{id} #

Get a recurring task

Returns a task visible to the authenticated user. The plugin converts stored UTC schedule values to the schedule user's local time and removes custom fields that are no longer valid for the project.

Parameters

Name In Type Description
id required path integer · int32 Positive numeric ID of the recurring task.

Responses

  • 200 The recurring task.
    id integer required Recurring task ID.
    name string required Display name.
    owner_id integer required User who owns the task.
    scope integer required 0 for personal, 1 for project scope. 0 1
    project_id integer required Associated project ID.
    reporter_id integer required Reporter ID used when creating issues.
    reporter object Reporter account reference when populated by the surrounding API layer.
    enabled integer required Whether the task can execute; responses serialize this database flag as 0 or 1. 0 1
    template object required
    project object required
    id integer required MantisBT object ID.
    handler object required
    id integer required MantisBT object ID.
    summary string required Issue summary template.
    description string required Issue description template.
    view_state object required
    id integer required MantisBT object ID.
    category object required
    id integer required MantisBT object ID.
    custom_fields object[]
    field string required
    value string required Value stored for the custom field; MantisBT accepts scalar field values.
    schedule object required
    frequency string required Schedule frequency. manual daily weekly monthly annually
    hour integer Local execution hour for non-manual schedules.
    interval integer Frequency interval when applicable.
    dow integer Weekly day, where 0 is Sunday.
    day integer Monthly or annual day.
    month integer Annual month.
    occurrence integer required Maximum successful executions; 0 means unlimited.
    counter integer required Number of executions recorded.
    created_at string required Creation timestamp as returned by MantisBT.
    updated_at string required Last update timestamp as returned by MantisBT.
    formatted_schedule string Optional human-readable schedule supplied by presentation code.
    last_executed string Optional last execution timestamp.
    last_result string Optional last execution result.
    {
        "id": 1,
        "name": "string",
        "owner_id": 1,
        "scope": 0,
        "project_id": 1,
        "reporter_id": 1,
        "reporter": [],
        "enabled": 0,
        "template": {
            "project": {
                "id": 1
            },
            "handler": {
                "id": 1
            },
            "summary": "string",
            "description": "string",
            "view_state": {
                "id": 1
            },
            "category": {
                "id": 1
            },
            "custom_fields": [
                {
                    "field": "string",
                    "value": "string"
                }
            ]
        },
        "schedule": {
            "frequency": "manual",
            "hour": 1,
            "interval": 1,
            "dow": 1,
            "day": 1,
            "month": 1
        },
        "occurrence": 1,
        "counter": 1,
        "created_at": "string",
        "updated_at": "string",
        "formatted_schedule": "string",
        "last_executed": "string",
        "last_result": "string"
    }
  • 400 Invalid ID, payload, frequency, or schedule field.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or the supplied token is invalid.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user cannot view, create, update, delete, or trigger this task.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The task or project does not exist.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/RecurringTasks/1
PUT /plugins/RecurringTasks/{id} #

Update a recurring task

Updates an existing task. Fields omitted from the flat payload retain their current values. The operation can move a task between projects or convert its personal/project scope when the caller has the required permissions; project_id must still identify an enabled project.

Parameters

Name In Type Description
id required path integer · int32 Positive numeric ID of the recurring task.

Responses

  • 200 Task updated; the response contains its numeric ID.
    id integer required Created or updated recurring task ID.
    {
        "id": 1
    }
  • 400 Invalid ID, payload, frequency, or schedule field.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or the supplied token is invalid.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user cannot view, create, update, delete, or trigger this task.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The task or project does not exist.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X PUT \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/RecurringTasks/1 \
  -d '"string"'
Request body · application/json
"string"
DELETE /plugins/RecurringTasks/{id} #

Delete a recurring task

Deletes the task and its execution history. A task belonging to a deleted project may still be removed for cleanup.

Parameters

Name In Type Description
id required path integer · int32 Positive numeric ID of the recurring task.

Responses

  • 204 Task deleted; the response has no body.
  • 400 Invalid ID, payload, frequency, or schedule field.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or the supplied token is invalid.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user cannot view, create, update, delete, or trigger this task.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The task or project does not exist.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X DELETE \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/RecurringTasks/1
POST /plugins/RecurringTasks/{id}/trigger #

Trigger a recurring task

Executes an enabled task immediately using its saved issue template. A successful execution creates an issue and advances the counter; when the configured repeat limit is reached, the task is disabled. Failures are recorded in task history and may also disable the task when its reporter is no longer valid.

Parameters

Name In Type Description
id required path integer · int32 Positive numeric ID of the recurring task.

Responses

  • 204 Trigger accepted and completed without a response body.
  • 400 Invalid ID, payload, frequency, or schedule field.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or the supplied token is invalid.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user cannot view, create, update, delete, or trigger this task.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The task or project does not exist.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X POST \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/RecurringTasks/1/trigger
GET /plugins/RecurringTasks/{project_id}/tasks #

List tasks for a project

Lists tasks visible to the authenticated user for a project. By default it includes both project-scope tasks and the caller's personal tasks for that project. Results are sorted by task name and returned in a pagination envelope. Project ID 0 is not a valid project; the implementation also supports MantisBT's all-projects sentinel where applicable.

Parameters

Name In Type Description
project_id required path integer · int32 Numeric project ID, or `0` (`ALL_PROJECTS`) to list tasks across accessible projects.
page query integer One-based page number. Values below 1 are treated as 1.
per_page query integer Number of tasks per page; the implementation clamps this to 1–100.

Responses

  • 200 Visible project tasks and pagination metadata.
    tasks object[] required
    id integer required Recurring task ID.
    name string required Display name.
    owner_id integer required User who owns the task.
    scope integer required 0 for personal, 1 for project scope. 0 1
    project_id integer required Associated project ID.
    reporter_id integer required Reporter ID used when creating issues.
    reporter object Reporter account reference when populated by the surrounding API layer.
    enabled integer required Whether the task can execute; responses serialize this database flag as 0 or 1. 0 1
    template object required
    project object required
    id integer required MantisBT object ID.
    handler object required
    id integer required MantisBT object ID.
    summary string required Issue summary template.
    description string required Issue description template.
    view_state object required
    id integer required MantisBT object ID.
    category object required
    id integer required MantisBT object ID.
    custom_fields object[]
    field string required
    value string required Value stored for the custom field; MantisBT accepts scalar field values.
    schedule object required
    frequency string required Schedule frequency. manual daily weekly monthly annually
    hour integer Local execution hour for non-manual schedules.
    interval integer Frequency interval when applicable.
    dow integer Weekly day, where 0 is Sunday.
    day integer Monthly or annual day.
    month integer Annual month.
    occurrence integer required Maximum successful executions; 0 means unlimited.
    counter integer required Number of executions recorded.
    created_at string required Creation timestamp as returned by MantisBT.
    updated_at string required Last update timestamp as returned by MantisBT.
    formatted_schedule string Optional human-readable schedule supplied by presentation code.
    last_executed string Optional last execution timestamp.
    last_result string Optional last execution result.
    pagination object required
    page integer required
    per_page integer required
    total integer required
    total_pages integer required
    has_prev boolean required
    has_next boolean required
    {
        "tasks": [
            {
                "id": 1,
                "name": "string",
                "owner_id": 1,
                "scope": 0,
                "project_id": 1,
                "reporter_id": 1,
                "reporter": [],
                "enabled": 0,
                "template": {
                    "project": {
                        "id": 1
                    },
                    "handler": {
                        "id": 1
                    },
                    "summary": "string",
                    "description": "string",
                    "view_state": {
                        "id": 1
                    },
                    "category": {
                        "id": 1
                    },
                    "custom_fields": [
                        {
                            "field": "string",
                            "value": "string"
                        }
                    ]
                },
                "schedule": {
                    "frequency": "manual",
                    "hour": 1,
                    "interval": 1,
                    "dow": 1,
                    "day": 1,
                    "month": 1
                },
                "occurrence": 1,
                "counter": 1,
                "created_at": "string",
                "updated_at": "string",
                "formatted_schedule": "string",
                "last_executed": "string",
                "last_result": "string"
            }
        ],
        "pagination": {
            "page": 1,
            "per_page": 1,
            "total": 1,
            "total_pages": 1,
            "has_prev": true,
            "has_next": true
        }
    }
  • 400 Invalid ID, payload, frequency, or schedule field.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or the supplied token is invalid.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user cannot view, create, update, delete, or trigger this task.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The task or project does not exist.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X GET \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/RecurringTasks/1/tasks
POST /plugins/RecurringTasks/{project_id}/tasks #

Create a project recurring task

Creates a project-scope recurring task. The path project is copied into the request payload and the scope defaults to project when omitted. The caller must have the configured project-task permission.

Parameters

Name In Type Description
project_id required path integer · int32 Numeric ID of the project whose tasks are read or created.

Responses

  • 200 Task created; the response contains its new numeric ID.
    id integer required Created or updated recurring task ID.
    {
        "id": 1
    }
  • 400 Invalid ID, payload, frequency, or schedule field.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or the supplied token is invalid.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user cannot view, create, update, delete, or trigger this task.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 404 The task or project does not exist.
    message string Human-readable validation or access error.
    code integer MantisBT error code when supplied.
    localized string Localized error text when supplied.
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X POST \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/RecurringTasks/1/tasks \
  -d '"string"'
Request body · application/json
"string"