Skip to content
  • Auto
  • Light
  • Dark
Get Started

Update

Create
client.Apps.Bindings.Update(ctx, dstAppEntitlementID, params) (*AppProxyEntitlementViewC1APIAppV1AppEntitlementProxyViewExpandedarrayAppBindingUpdateResponse, error)
post/api/v1/apps/{src_app_id}/{src_app_entitlement_id}/bindings/{dst_app_id}/{dst_app_entitlement_id}

Invokes the c1.api.app.v1.AppEntitlementsProxy.Create method.

Parameters
dstAppEntitlementIDstring

The dstAppEntitlementId field.

paramsSrcAppIDfieldSrcAppEntitlementIDfieldDstAppIDfieldExpandMaskfieldAppBindingUpdateParams
Hide ParametersShow Parameters
SrcAppIDfield
param.Field[string]

Path param: The srcAppId field.

SrcAppEntitlementIDfield
param.Field[string]

Path param: The srcAppEntitlementId field.

DstAppIDfield
param.Field[string]

Path param: The dstAppId field.

ExpandMaskfield
optional

Body param: The AppEntitlementProxyExpandMask message.

Hide ParametersShow Parameters
Pathsarray
optional
[]string

The paths field.

Returns
AppBindingUpdateResponsestruct

The CreateAppEntitlementProxyResponse message.

Hide ParametersShow Parameters
AppProxyEntitlementViewAppProxyEntitlementC1APIAppV1AppEntitlementProxyViewAppProxyEntitlementDstAppEntitlementPathstringDstAppPathstringSrcAppEntitlementPathstringSrcAppPathstringC1APIAppV1AppEntitlementProxyView
optional

The AppEntitlementProxyView message.

Expandedarray
optional

The expanded field.

Hide ParametersShow Parameters
Typestring
optional

The type of the serialized message.

Request example Go
package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/-go"
  "github.com/stainless-sdks/-go/option"
)

func main() {
  client := conductoronesdk.NewClient(
    option.WithAPIKey("My API Key"),
  )
  binding, err := client.Apps.Bindings.Update(
    context.TODO(),
    "dst_app_entitlement_id",
    conductoronesdk.AppBindingUpdateParams{
      SrcAppID: "src_app_id",
      SrcAppEntitlementID: "src_app_entitlement_id",
      DstAppID: "dst_app_id",
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", binding.AppProxyEntitlementView)
}
200 Example
{
  "appProxyEntitlementView": {
    "appProxyEntitlement": {
      "dstAppEntitlementId": "dstAppEntitlementId",
      "dstAppId": "dstAppId",
      "implicit": true,
      "srcAppEntitlementId": "srcAppEntitlementId",
      "srcAppId": "srcAppId",
      "systemBuiltin": true
    },
    "dstAppEntitlementPath": "dstAppEntitlementPath",
    "dstAppPath": "dstAppPath",
    "srcAppEntitlementPath": "srcAppEntitlementPath",
    "srcAppPath": "srcAppPath"
  },
  "expanded": [
    {
      "@type": "@type"
    }
  ]
}