Skip to content

Name not being passed into discovery.createCollection( #457

Description

@chughts

If this is a usage problem, then let me know and I will post a question in the appropriate forum, but I have had a look and I think that its a problem with the SDK.

The discovery.createCollection builds the body for the underlying REST API as
body: JSON.stringify(pick(params, ['collection_name', 'description', 'configuration_id', 'language_code']))

but the API is expecting a body of

{
  "name": "{collection_name}",
  "description": "{description}",
  "configuration_id": "{configuration_id}"
}

which means that name is never getting set. So every time I try to invoke the method through the SDK I get

"Invalid or missing collection name, name is a required parameter"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions