# Create a service

Creates a service

Endpoint: POST /v1/services
Version: 1.0
Security: x-api-key

## Header parameters:

  - `Harness-Account` (string)
    Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.

## Request fields (application/json):

  - `identifier` (string, required)
    Identifier of the Service

  - `name` (string, required)
    Name of the Service

  - `description` (string)
    Description of the entity

  - `tags` (object)
    Service tags

  - `yaml` (string)
    YAML for the Service Request

  - `harness_version` (string)
    version of harness yaml

## Response 201 fields (application/json):

  - `service` (object)
    This is the Service entity defined in Harness

  - `service.account` (string)
    Account Identifier

  - `service.identifier` (string, required)
    Identifier of the Service Request.

  - `service.org` (string)
    Organization Identifier for the Entity.

  - `service.project` (string)
    Project Identifier for the Entity.

  - `service.name` (string, required)
    Name of the Service Request.

  - `service.description` (string)
    Description of the entity

  - `service.tags` (object)
    Service tags

  - `service.yaml` (string)
    Yaml related to service

  - `service.harness_version` (string)
    version of harness yaml

  - `created` (integer)
    Creation timestamp for Service.

  - `updated` (integer)
    Last modification timestamp for Service.


