---
title: "Obtain the URI for an attribute value"
method: POST
path: "/gdc/md/{project_id}/labels"
tags: ["attribute-elements"]
---

# Obtain the URI for an attribute value

`POST /gdc/md/{project_id}/labels`

## Request

- Base URL: `https://secure.gooddata.com`
- URL: `https://secure.gooddata.com/gdc/md/{project_id}/labels`
- Auth: none declared

Use this call to get the URI of an attribute value when you know its title and what attribute label this attribute value belongs to.

You can submit up to 150 attribute label URIs in one request.

## Path parameters

- `project_id` string, required

## Request body

- ElementLabelToUri
  - `elementLabelToUri` object, required
    - `mode` string: match mode, only 'EXACT' supported
    - `labelUri` string, uri, required: uri of the label (attribute display form)
    - `patterns` string[], required: element labels (in EXACT mode) or patterns to match them

## Response `200`

_

- ElementLabelUri: Result structure with list of element labels and theirs uris. Each element in 'patterns' array of input structure (ElementLabelToUri) has correspondig element (on the same position in array) in 'result' array of output structure (ElementLabelToUri). See structures example.
  - `elementLabelUri` object[], required
    - `mode` string, required: match mode
    - `labelUri` string, required: uri of the label (attribute display form)
    - `result` object[], required
      - `pattern` string, required: pattern (or element label in EXACT mode)
      - `elementLabels` object[], required
        - `elementLabel` string, required: element label (string)
        - `uri` string, uri, required

---

[API](https://skmtc.dev/gooddata/apis/gooddata-api-documentation.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-api-documentation/revisions/e5dc0ee6ab00?raw)
