---
id: scope-dimension-create
title: "Assign a dimension"
description: "Assign a dimension to this scope."
sidebar_label: "Assign a dimension"
hide_title: true
hide_table_of_contents: true
api: eJzdVk1v4zYQ/SvEnHYBxXYS56JbNt2i6aENEge7QGIEY3FscZciFX44cQ3992Io2ZbttLtYoC3QHBSbHnLevHlDvTVI8oVTdVDWQA6X3quFESikqsh4ZY0IVoRSeeELW9MAMrA1OeT4awk5pOWnbXheOMJAkEHAhYf8Ae44AKYZ1OiwokCOl9dgsKLN/msJGSgGUGMoIQNHz1E5kpAHFyk7QDkpSUSjniOJ65/E3DoRStoB9EVJFUK+hrCqU47glFlAkwG9YlVrXjs9Ox9DM21TkQ8frFzxlsKaQCbwR6xrrYpU6vCL58zr47Pt7AsVAXpHr4HMUjlrqnQOSFqStnX6lkFhowluBTnc3zEilFJxBtQ3jpkNivwx9EMGvtLqZIk6khcvKpTC67jwWyZ2zUMjhQpepNgBNPyXgaciOhVWqQ8zQkfuMoYS8odpy4ivrfEtjrPRmP8dN2ArA/GCXvhYFOT9POoBVzX+/Pl415VWZIIg56wT2yRCRmKRKbNEraRQpo5BWCcq5b0yC7HTzSDx94P92UnqAXzAEP2VlSzUhAcyqMh7XLRS3WtFL3p3rjKBFuSOOvPLZHIj2h2isJKEo9qRJxO4lqTTmgo1V4Uo+ny8o8FikInxaMSPU36c82P8ftAX13g0apiEPSx/IZJLUWFRKkMnjlDiTFOXK+EKJQZRYKCFdeoP8i02cktyYo5KR0d7mWGG8qkbljRKibbvADFziuaZKGOFZoekFyXsPCVvwfFxGzYe4QNKcdsmfQReuDcYQ5kgy0fYJ6cfzRA3Hf02yO0QCkkBlfYCZzaGHaz9PKz/joqk/gr13LqKpEjsmoDKkNxKuq/gppvBi7cm5K6l/3BClJFJ52Yh0AjlfSTBN3NJ4vLmWngl6X82Gr5PRCeGCx6Ni9EZP873G3/x300FF+sM6qc26Kml7F+bj+suveik85Fj2knhFVWQuDe4RKX51KOBeXP7Pzo6l0ZEQ681FYFkV5ItiugcyYG40YSeRHArgQtURmgM5DZTk3CF0rLvqK1n6Sa/kMMwvfyH685NNMPtK5D9QKqtdR3RacihDKH2+XCItRqYqHWtMfAADwpbJVOweUPe8cy0Uu+/J7ek8EEbx5HuyBQEWffhZ+sqZA/w66cJMHyexdud4fj4Y55BmbnlPVxV24XTwWgwYtOlQmL5t15RfEfwLmaswnQVdN7r2O0dtrfnh77LG3a0BHoNw1qjMpw4cb7uWvXQOj7IIN9Zv13+aQYldzZ/gPV6hp7unW4aXn6OxBQ8TDNYolMs59RRqTx/lpDPUftDr9gv4N1td8+9F99wkG+W0S2iWQFD0JG/QcZerOdjm2mTQUkoySV47a9XLYiTySqVvtl9dE032WbHZVFQHf42dtobh5vf7yYsu87FVukqBIcvfL3jS4vUJlKSmtPaGjSaRUxzDu2ZLFLc1/iBplNVb3KxXrcRE/uVTNNsqQn8nYlpmj8BGplNSA==
sidebar_class_name: "post api-method"
info_path: docs/api/nullplatform-api
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Assign a dimension"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/scope/{scopeId}/dimension"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Assign a dimension to this scope.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"name":"scopeId","in":"path","required":true,"description":"The unique ID for the scope.","schema":{"type":"string"},"example":"1234"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"content":{"application/json":{"schema":{"type":"object","example":{"environment":"development","country":"US"},"additionalProperties":{"type":"string","description":"key-values with slugs for the dimension and its value."}}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"The operation was successful."},"4XX":{"description":"Client error responses due to invalid input or missing parameters.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific client error (e.g., 400, 401, 403, 404).","example":400},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"bad_request"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Bad Request\", \"Unauthorized\").","example":"Bad Request"},"message":{"type":"string","description":"Additional details about the error.","example":"The request was malformed or contained invalid parameters."}}}}}},"5XX":{"description":"Server error responses indicating an issue on the API side.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific server error (e.g., 500, 502, 503).","example":500},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"internal_server_error"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Internal Server Error\", \"Service Unavailable\").","example":"Internal Server Error"},"message":{"type":"string","description":"Additional details about the error.","example":"An unexpected error occurred. Please try again later."}}}}}}}}
>
  
</StatusCodes>


      