Update a project

PUT - https://api.verifik.co/v2/projects/{id}

Method for updating an existing project. To make the service work, the _id parameter is required, which is generated when a project is created correctly.

If we want our project to become an active project, we must change the "status" parameter from "draft" to "active".

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body

NameTypeDescription

status

string

Current Status of the project, can be "draft" or "active", only "active" projects can be used.

Body

In the body of this service, you can send all the fields generated when creating a project. The only thing to consider is that the fields we want to modify are the ones that must be included in the body.

{
  "data": {
    "_id": "6577709346f8a7e9a36c4a34",
    "name": "Ejemplo4",
    "status": "draft",
    "branding": {
      "logo": null,
      "bgColor": "#01236D",
      "txtColor": "#8091B6",
      "titleColor": "#FFFFFF",
      "borderColor": "#B2BDD3"
    },
    "lastStep": 1,
    "currentStep": 0,
    "allowedCountries": [
      "Colombia"
    ]
  }
}

Response

{
  "data": {
    "__v": 0,
    "_id": "6577709346f8a7e9a36c4a34",
    "name": "Ejemplo4",
    "client": "623b6317fe5fd1774be9f566",
    "status": "draft",
    "branding": {
      "logo": "<https://cdn.verifik.co/projects/Inmobu-ValidaciónDeIdentidad_1702305468459-image.jpeg>",
      "bgColor": "#01236D",
      "txtColor": "#8091B6",
      "titleColor": "#FFFFFF",
      "borderColor": "#B2BDD3"
    },
    "lastStep": 1,
    "createdAt": "2023-12-11T20:26:59.536Z",
    "updatedAt": "2023-12-11T20:26:59.536Z",
    "currentStep": 0,
    "allowedCountries": [
      "Colombia"
    ]
  },
  "status": "completed"
}

Last updated