---
id: create-a-target-for-a-resource
title: "Create a target for a resource."
description: "Create a target for a resource."
sidebar_label: "Create a target for a resource."
hide_title: true
hide_table_of_contents: true
api: eJyNVMFu2zAM/RWDpw3QlhVDd/CtLXboLejSU5ADYzO2WltSJTprYOjfB0qOk6Dttosh0xT53uOjR6gpVF471tZACXeekKnAgtE3xMXO+gILT8EOvqKvoICxCVCu4WGKgYJVyoWNgkDV4DUfoFyPcEvoyRc3A7dQrjdxo8Chx56YfEgZoWqpRyhH4IMjKCGw16aBqMDTy6A91VCyH0iBwV4Sjkjua1CgBbFDbkFqyw0KfGvrg1SsrGEyLEd0rtMVCsXFUxCe77S22yeqGBQ4bx151hTkq3bvwuuJW1u//aTADF2H244y8KjAWc9nidowNeRBQa+N7oceyisFPb7m84/r6+/XUQEZKXLeYWttR2hAQU07HDqeOlyItRbAU8+NAqxrLbSxW56x2mEXKMZ8MzhrQuJ6RgvckKQQbUtYHFVfjCf94yJbBGTqfn8c6eA7ubG/SjM5+uGXqJ0FvXDFTK5lFtxpKolsygKBKBN7OM325yv2TuTNszkJP2OfI1n5b2diTiPRZmelgKDOvt9fibU1S2FYomlsp01xL7PyyTjFzfIe0jQD95gsNFny3ytzsWJnzvyfbcvyML3ywnWojWBIGo/TdNbzToCC8mI/eN7L1gaW1HHcYqBH38Uo4ZeBvOzqRsEevc62XY9Q6zAJlqzyFwafHibrfS4+QjsF0RxA2nSDvIGCZzpcLnTcRAUtYU0+ocgJd7nXl5WUORV4s9Nit9kCy8cVKNhOv4Le1unfgb9BpWfqbxOd5MkUG6FD0wzYSG4uKfbDS6NOxlTHgwB9l+E45oyVfSYT40yY5V24xvgHabDf0g==
sidebar_class_name: "put api-method"
info_path: 03-Pangolin/07-API/02-Routes/pangolin-integration-api
custom_edit_url: null
hide_send_button: true
---

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={"Create a target for a resource."}
>
</Heading>

<MethodEndpoint
  method={"put"}
  path={"/resource/{resourceId}/target"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Create a target for a resource.

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

<ParamsDetails
  parameters={[{"schema":{"type":"string"},"required":true,"name":"resourceId","in":"path"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"content":{"application/json":{"schema":{"type":"object","properties":{"ip":{"type":"string"},"method":{"type":"string","nullable":true},"port":{"type":"integer","minimum":1,"maximum":65535},"enabled":{"type":"boolean","default":true}},"required":["ip","port"],"additionalProperties":false}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{}}
>
  
</StatusCodes>


      