---
title: "Close campaign"
url: "https://earlyaccess.developers.bynder.com/apis/workflow-campaigns-api-1/versions/e0ad0bb4-8312-4ba5-bc53-d0218db2d92e/operations/closeCampaign"
---

> Full API specification: https://earlyaccess.developers.bynder.com/apis/workflow-campaigns-api-1/versions/e0ad0bb4-8312-4ba5-bc53-d0218db2d92e.md

# Close campaign

`POST` `/api/workflow/campaigns/{id}`

Operation ID: `closeCampaign`

Requires the CAMPAIGNWRITE security role.

## Path parameters

- `id` (string, required)

## Responses

- `204` - Campaign closed successfully
- `404` - Campaign not found

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Workflow Campaigns API
  version: 1.0.0
servers:
  - url: https://{your-bynder-domain}
paths:
  /api/workflow/campaigns/{id}:
    post:
      description: Requires the CAMPAIGNWRITE security role.
      operationId: closeCampaign
      parameters:
        - in: path
          name: id
          required: true
          schema:
            example: 00000000-0000-0000-0000-000000000000
            type: string
      responses:
        "204":
          description: Campaign closed successfully
        "404":
          description: Campaign not found
      security:
        - OAuth2:
            - CAMPAIGNWRITE
        - permanentToken:
            - CAMPAIGNWRITE
      summary: Close campaign
      tags:
        - Campaigns
security:
  - OAuth2:
      - CAMPAIGNWRITE
  - permanentToken:
      - CAMPAIGNWRITE
components:
  securitySchemes:
    OAuth2:
      flows:
        authorizationCode:
          authorizationUrl: https://{your-auth-url}
          scopes:
            CAMPAIGNADD: ""
            CAMPAIGNEDIT: ""
            CAMPAIGNOVERVIEW: ""
            CAMPAIGNREMOVE: ""
            CAMPAIGNWRITE: ""
          tokenUrl: https://{your-bynder-domain}/v6/authentication/oauth2/token
        clientCredentials:
          scopes:
            CAMPAIGNADD: ""
            CAMPAIGNEDIT: ""
            CAMPAIGNOVERVIEW: ""
            CAMPAIGNREMOVE: ""
            CAMPAIGNWRITE: ""
          tokenUrl: https://{your-bynder-domain}/v6/authentication/oauth2/token
      type: oauth2
    permanentToken:
      in: header
      name: Authorization
      type: apiKey
```
