aboutsummaryrefslogtreecommitdiffstats
path: root/doc/api_item_store.md
blob: 0748c266fc8db1ba3e7060a7ffadb0907a2e43c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
API item/store
==============

Usage: POST /api/z/1.0/item/store

Description: item/store posts an item (typically a conversation item or post, but can be any item) using form input.  


Required:

- body

	text/bbcode contents by default.


Optional:

- $_FILES['media']
	uploaded media file (currently photos)

- title
	title of post/item

- coord
	geographic coordinates

- location
	freefrom location

- expire
	datetime this post will expire or be removed

- mimetype
	mimetype if not text/bbcode

- parent
	item.id of parent to this post (makes it a comment)

- parent_mid
	alternate form of parent using message_id

- remote_xchan
	xchan.xchan_hash of this message author if not the channel owner

- consensus
	boolean set to true if this is a consensus or voting item (default false)

- nocomment
	boolean set to true if comments are to be disabled (default false)

- origin
	do not use this without reading the code

- namespace
	persistent identity for a remote network or service

- remote_id
	message_id of this resource on a remote network or service

- message_id
	message_id of this item (leave unset to generate one)

- created
	datetime of message creation

- post_id
	existing item.id if this is an edit operation

- app
	application or network name to display with item

- categories
	comma separated categories for this item

- webpage
	item.page_type if not 0

- pagetitle
	for webpage and design elements, the 'page name'

- layout_mid
	item.mid of layout for this design element

- plink
	permalink for this item if different than the default

- verb
	activitystream verb for this item/activity

- obj_type
	activitystream object type for this item/activity