---
agentTools:
  projectIndex: https://docs.agilite.io/llms.txt
---

# /data

Creates a new Keyword profile in Agilit-e

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Agilit-e Keywords",
    "version": "7"
  },
  "servers": [
    {
      "url": "https://api.agilite.io/keywords"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/data": {
      "post": {
        "summary": "/data",
        "description": "Creates a new Keyword profile in Agilit-e",
        "operationId": "data-12",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "log-profile-key",
            "in": "header",
            "description": "Profile Key of the Batch Logging Profile configured for logging",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "properties": {
                      "isActive": {
                        "type": "boolean",
                        "description": "Set to \"true\" if profile is active and should be retrievable via Execution APIs",
                        "default": true
                      },
                      "key": {
                        "type": "string",
                        "description": "A unique key for your Profile (e.g. key1)"
                      },
                      "groupName": {
                        "type": "string",
                        "description": "Group together profiles using a Group Name (e.g. Group 1)"
                      },
                      "values": {
                        "type": "array",
                        "description": "Label/Value pairs for your Keyword profile",
                        "items": {
                          "properties": {
                            "label": {
                              "type": "string",
                              "description": "e.g. Label 1"
                            },
                            "value": {
                              "type": "string",
                              "description": "e.g. Value 1"
                            }
                          },
                          "type": "object"
                        }
                      }
                    },
                    "required": [
                      "key",
                      "values"
                    ],
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n        \"values\": [\n            {\n                \"label\": \"label1\",\n                \"value\": \"value1\"\n            }\n        ],\n        \"isActive\": true,\n        \"key\": \"test\",\n        \"groupName\": \"Test Group\"\n    },\n    \"_id\": \"5c765c4c3af10e2c6b4ae2f4\",\n    \"createdBy\": \"Joe Blogs\",\n    \"modifiedBy\": \"Joe Blogs\",\n    \"createdAt\": \"2019-02-27T09:45:48.069Z\",\n    \"updatedAt\": \"2019-02-27T09:45:48.069Z\",\n    \"__v\": 0\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "values": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "type": "string",
                                "example": "label1"
                              },
                              "value": {
                                "type": "string",
                                "example": "value1"
                              }
                            }
                          }
                        },
                        "isActive": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "key": {
                          "type": "string",
                          "example": "test"
                        },
                        "groupName": {
                          "type": "string",
                          "example": "Test Group"
                        }
                      }
                    },
                    "_id": {
                      "type": "string",
                      "example": "5c765c4c3af10e2c6b4ae2f4"
                    },
                    "createdBy": {
                      "type": "string",
                      "example": "Joe Blogs"
                    },
                    "modifiedBy": {
                      "type": "string",
                      "example": "Joe Blogs"
                    },
                    "createdAt": {
                      "type": "string",
                      "example": "2019-02-27T09:45:48.069Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "example": "2019-02-27T09:45:48.069Z"
                    },
                    "__v": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"statusCode\": 400,\n    \"errorMessage\": \"An Error Occurred\",\n    \"additionalMessages\": [\"An Error Occured\"]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    },
                    "errorMessage": {
                      "type": "string",
                      "example": "An Error Occurred"
                    },
                    "additionalMessages": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "An Error Occured"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "5fc0c5ba525f16005dcefb91:5fc0c5ba525f16005dcefbbb"
}
```