Create or update a resource bundle in a specific project

putResourceBundle(environment, xAuthToken, 'vA1b2', '/content/documents/administration/categories', data)
.then(response => console.log(response.data))
.catch(error => console.error(error));
  • Parameters

    • environment: string

      Environment name: https://{{environment}}.bloomreach.io

    • xAuthToken: string

      BrX API Token

    • projectId: string

      Specifies the project content is added to

    • path: string

      Path of a resource bundle. This is the absolute path to the resource bundle, including the resource bundle name

    • data: Document
    • OptionalxResourceVersion: string

      Resource's version, as obtained when GETting the resource. The first time a resource is created, a empty value is expected (omit the header). Must be used in any subsequent update requests of this resource

    Returns AxiosPromise