---
id: nrn-update
title: "Update a value within an NRN"
description: "Updates a value within an NRN. If the NRN does not exist, it will be created."
sidebar_label: "Update a value within an NRN"
hide_title: true
hide_table_of_contents: true
api: eJzlV81uGzcQfhWCp8RYS0piXxZwAMdJEPcgGK7cBLCFYESOtIx3yQ1/JCvCPkPvPfUx+jx9gb5CMeRKWllu0gT9AdrLasUlOd98M99wuOISnbCq9sponvOrWoJHx4DNoQzIFsoXSjPQbHg57LHzKfMF0juTBh3TxjO8U85nTHm2UGXJJsiERfAoezf6Rj+/0c/Zrz/9/NsvP7KDg5dYWxRAxmitEnhw0M4ZFcoxU6NNXys1KzxtZrEyc5RM6Wh6Gnyw2GNv6YswVYVasuCUnrHrC2vmSqJ140d9aYTr1+uBvpmjnStcPGZKO48gezzjG2vnkudcW52H6D7PuIeZ4/k1H14O+TjjNVio0KOlwRXXUGFawTOuiLcafMEzbvFjUBYlz70NmN0jd9RS5w1LhgiEEwVWwPMV98uadnXeKj3jTcbxDqq6pDFjZ6DVpwj25EkOQpig/cnTnJC4GgSePMuhrkuVyD054s04wUHnXxi5JAPCaI/a02tnbv+DI3SrfSRm8gGF5/fdONUsfWGLAi2yW1w6ZimyDrWPHsbkccxYVlszVSU63nFnxWHheiVUEwmvgxa07zBROsTFeuQH2oNo8MpHEoZWv7XKI2+apsm4QxGs8ssYkQmCRXsafMHz63Hy3dVGO3Rk7+ngiH72w7FNuAU45oIQ6Nw0lBSZb6ZrmwXXbY5swkQ8bCgZx/carVcJJk3eS4Q9+plbOo/V4UJJZEGrjwHZ+Us2NZZZdCZYERPry9lD5HaQfXXgEURB0d8GnwrHZseMgZZMedfWEuWojrQ7ELmgNOn2FpeHaUYNyrrebqrsApyVZgJlpN9UeHiLSyKKXucpXWJqbBj+Cpc6gKjOrLdgMAdVwqTESLCnKkWlcBdk16DEOZamrtrUieA2TnwGeYQtg0jIvrAQtPEF2o7X0fG1VCiR0sjRu3f7mX9WKlIqWptyJgmFyYBUm5SeQ6mo4tbBk4Yr5WKB3VbBv0wezoMP7sxIKroRD894hc7BDPf10Zm93VdpjzO0e6F9MxpdsLSCCSNxm6XrGLsahZoqwUSXj0fYm/UydjQY0OMJPZ7R4+jxTtCPBoOGSNjB8oeSrUAUSuOhRZAxmZKtiMsX4JkAjzNj1Sd0CRvaOVo2BVXSebej5wnI921pj8dEpO1PgJhYhdOMFaECvUXSmcVMOt8TONpuzcYNfwGSXSajN5wGrjQEX0TI8obvktOdTRDXEf0ySCkVvULJJHpQpWMwMcFvYe3aoRreUhEreAXl1NgKJYvsRknH5iGldDeD15o5fkgh3yf67ytEaRnzXM+olCnnAjKTGpPTi3PmlMT/mDRcl4g2GY5JGseDp/R4thv4439PFeSs1VC+T5PeJ8r+MX2ct+ZZmzqvaE5SCo0ogexKbw6TPcE8uPxvlc6pZkHjXY3Co2xdMkIEa1H22EWJ4JB5u2QwA6VZCR5tb3vUVOgLI1PrK6j3jS1wzvva6v5KW91QcxudSU1zsCXPeeF97fJ+H2rV06Es6xI8KbYnTBV71nVb9z2JJOV2t7nbsEAbrdvnWBTjJJ61L6+NrcDznH/3dsQJL4nvctsPv/rGZlTpqaFF5Fbi/Ulv0BvwTpt6OYyHuXG+Ar1uYTZ3q4evVvej2WnW/193sja6Hu98vy5BaeIyps6qzbB1T53TzzjjhXGeRlerCTi8smXT0PDHgJbuBuOMz8EqEl1MQ6kcvUueT6F09+9oXd4fXbbV+DF78Ob2INR2EPSSk2HKmpzzjKe2LfZl4ybjBYJEGwGlL2fJ7OGI1m9X7h0fTbZecSoE1v6zc8cdmV6cjs7ekDzay2AVazS3sKBzBxYJpok8RNXFsRUvQc9CLEA8bUpigl0t3tNedOtBIlarNGNkblE3zYYXT/+Jmab5HcZKxqI=
sidebar_class_name: "patch api-method"
info_path: docs/api/nrn
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={"Update a value within an NRN"}
>
</Heading>

<MethodEndpoint
  method={"patch"}
  path={"/nrn/{nrn}"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Updates a value within an NRN. If the NRN does not exist, it will be created.

>
> ⚠️ **Deprecation notice**
>
> This operation might be removed in the future. We recommend using [Providers](/docs/providers/overview) instead.

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

<ParamsDetails
  parameters={[{"name":"nrn","in":"path","required":true,"description":"The NRN to update.","schema":{"type":"string"},"example":"organization=1:account=2:namespace=3:application=4"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"content":{"application/json":{"schema":{"type":"object","description":"An object where keys represent NRN values or profiles","example":{"aws.lambdaFunctionName":"NewFunctionValue"},"title":"NrnWrite"}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"The operation was successful.","content":{"application/json":{"schema":{"type":"object","required":["nrn","namespaces","profiles"],"properties":{"nrn":{"type":"string","description":"A system-wide unique ID for resource.","example":"organization=1:account=2"},"namespaces":{"type":"object","description":"An object where each key represents a namespace, and its value is an object containing key-value pairs.","example":{"namespaces":{"global":{"some-key":"some-value"}}}},"profiles":{"type":"object","description":"An object containing the profiles available for this NRN.","example":{"profiles":{"development":{"some-namespace":{"some-key":"some-value"},"production":{"some-namespace":{"some-key":"another-value"}}}}}}},"title":"nrn"}}}},"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>


      